Ampro Corporation 5001451A Latch-Up Protection, Parallel Port Registers, Register Name Address

Page 40

Latch-Up Protection

The parallel port incorporates chip protection circuitry on some inputs, designed to minimize the possibility of CMOS “latch up” due to a printer or other peripheral being powered up while the Little Board P6d system is turned off.

Parallel Port Registers

The low-level software interface to the parallel port consists of eight addressable registers. The address map of these registers is shown in Table 2-21.

Table 2-21. Parallel Port Register Map

Register Name

Address

Data Port

Base address

Status Port

Base address + 1

Control Port

Base address + 2

EPP Address Port

Base address + 3

EPP Data Port 0

Base address + 4

EPP Data Port 1

Base address + 5

EPP Data Port 2

Base address + 6

EPP Data Port 3

Base address + 7

Note: EPP registers are only accessible when in EPP mode

Standard and Bidirectional Operation

You can use the parallel port as a standard output-only printer port or as a PS/2-compatible bidirectional data port with up to 12 output lines and 17 input lines. All data and interface control signals are TTL-compatible. Set the parallel port’s default mode using Setup.

Using the Parallel Port in Bidirectional Mode

To use the port as a bidirectional data or digital control port you must set the default mode to bidirectional in Setup or put it in bidirectional mode with a BIOS call. The following code example shows how to set the parallel port mode to bidirectional.

;----------------------------------------------------------

; Code to set the parallel port mode to bidirectional

;----------------------------------------------------------

 

 

 

 

MOV

AH,0CDh

; AMPRO

command

 

MOV

AL,0Ch

;

AMPRO

function

MOV

BX,01h

;

Extended mode

(use 00 to set output-only mode)

INT

13h

 

 

 

 

Within bidirectional mode, the port can be in its input state or output state. The code shown above leaves the port in its input state. An IN instruction of I/O address 378h reads the current state of the data lines.

2-22

Image 40
Contents Little Board P6d Reference Manual Revision Reason for Change Date Copyright 2000, 2002, Ampro Computers, IncorporatedTable of Contents Preface ROM Bios Standards Contact Information Cables Index Page Introduction Technical SupportWebsite Surface MailViii General Description Product Feature SummaryCPU/Motherboard Modular PC/104-Plus Expansion Bus Enhanced Embedded-PC BiosCompactFlash Disk Serial Ports Parallel PortFloppy Interface PCI-Bus Eide InterfacesFlat Panel/CRT Display Controller MBps Ethernet LAN InterfaceSoftware Designing Little Board SystemsEnhanced Reliability On-board MiniModule ExpansionLittle Board Development Platform And QuickStart Kit I/O Development BoardConnector Descriptions J2 PowerConnector Name Description Pin # SignalSwitch Descriptions S1 S5 J3 MiscJ4 Keyboard J5 MouseSystem Block Diagram Page Mounting Dimensions OverviewLittle Board P6d Module with Mounting Dimensions Connector Summary Connector Function Size Key PinPage Little Board P6d Connector and Jumper Locations Jumper Group Function Default Jumper SummaryDC Power Power RequirementsPin # Signal Name Function Connector Type Mating ConnectorSwitching Power Supplies Powerfail NMIBackup Battery Cooling RequirementsSystem Memory Fan ConnectorPin # Function Interrupt and DMA Channel Usage Bios RecoveryShadowing Interrupt Function Serial Ports Battery-Backed ClockChannel Function ROM-BIOS Installation of the Serial Ports Serial Port Connectors J8, J11Addresses and Interrupt Assignments Port Address InterruptSignal DB25 Ports Pin # Signal Name Function In/Out DB25 Pin DB9 PinPorts Pin # Name Function Ampro Custom Serial Features Serial Console FeaturesSerial TTL Option Jumper ResultUsing a Standard PC Keyboard Using Arrow Keys During Setup Universal Serial Bus USB PortsCOM Port Table Function Substitute KeysIrDA Connector Part of Utility J19 J4 Pin # Signal Name FunctionJ5 Pin # Signal Name Function Infrared IrDA Interface ROM-BIOS Installation of Parallel Ports J19 Pin # Signal Name Function Multi-Mode Parallel Port Addresses and InterruptsParallel Port Connector J9 DMA ChannelsPin # Signal Name Function In/Out DB25 Pin IEEE-1284-compliant CablesUsing the Parallel Port in Bidirectional Mode Latch-Up ProtectionParallel Port Registers Standard and Bidirectional OperationUsing the Control Lines for Additional I/O Enabling the Parallel Port Interrupt22. Parallel Port Register Bits Floppy Interface Configuration Floppy Disk InterfaceFloppy Drive Considerations Capacity Drive Size Tracks Data RatePin # Signal Name Function In/Out Floppy Interface Connector J14Eide Hard Disk Interface Pin # Signal Function Name IDE Interface Configuration Master/Slave SettingCompactFlash Solid-State Disk Enabling the DriveAudio Interface Audio Interface ConnectorAudio Amplifier Connector Function Type Signals Audio Interface Adapter Schematic Pin # Signal Function Flat Panel/CRT Video ControllerConnecting a Flat Panel J15 Name Connector Pins/Type DescriptionPower Sequencing Advanced Power ManagementBios Support of Standard Flat Panels Connecting a CRT J17ZV Port Interface J16 Pin # Signal Name DB-15J6 Pin # Name Function Ethernet RJ45 Interface Connector J13 Ethernet Network InterfaceDisabling the Video Controller Hardware DescriptionEthernet Interface Software Manufacturers Ethernet IDNetwork Operating Systems Network OS DriversWatchdog Timer Ethernet SetupEthernet Indicator LEDs Color Designation FunctionUtility Connectors J19 38. Utility Connector J19 Push-button Reset Connection LED ConnectionSpeaker Connections Keyboard ConnectionMiscellaneous Power Management Signals PC/104-Plus Expansion BusIrDA Interface TTL Serial PortsUsing Standard PC and AT Bus Cards Expansion Bus Connector PinoutsPin # Signal Name Function Pin # Signal Function Name Pin 12VSetup Setup HelpMenu Name Functions Setup 1 Main Menu ↑ ↓ → ←Setup 2 Standard Cmos Setup Eide Hard Disk DrivesDrive Selection Setup 3 Bios Features Setup VideoSerial Console Operation during Setup Setup 4 Chipset Features Setup 10. Setup 4 Chipset Features SetupSetup 5 Power Management Setup 11. Setup 5 Power Management SetupPage Setup 6 PCI Configuration Setup 12. Setup 6 PCI Configuration SetupSetup 7 Integrated Peripherals Setup Integrated Peripherals SetupPanel # Panel Class Load Setup Defaults Screen Other Setup ScreensIDE HDD Auto Detection Screen Save & Exit Setup Screen Exit Without Saving ScreenLittle Board P6d Technical Specifications Embedded-PC System EnhancementsOn-board Peripherals Mechanical and Environmental Specifications Support SoftwareBios Modes Flat Panel DisplaysSupported CRT Video Modes-Standard VGA Supported CRT Video Modes-Low Resolution Supported CRT Video Modes-Extended Modes 46h Generic 32K 8x16 Hardware IRQ Map IRQ #Page Appendix a Standards Contact Information EPP and ECP OperationPage Appendix B Cables Page Cable Setup Index Setup summary Shadowing Index Index-4