
10.0 Legacy Functional Blocks
(Continued)
www.national.com
222
Revision1.2
P
10.2 PARALLEL PORT
10.2.1
The Parallel Port supports all IEEE1284 standard communication modes:
General Description
G
Compatibility (known also as Standard or SPP).
G
Bidirectional (known also as PS/2).
G
FIFO.
G
EPP (known also as Mode 4).
G
ECP (with an optional Extended ECP mode).
10.2.2
The Parallel Port includes two groups of runtime registers, as follows:
A group of 21 registers at first level offset, sharing 14 entries. Three of these registers (at offsets 403h, 404h and 405h)
are used only in the Extended ECP mode.
A group of four registers, used only in the Extended ECP mode, accessed by a second level offset.
EPP and second level offset registers are available only when the base address is 8-byte aligned.
The desired mode is selected by the ECR runtime register (offset 402h). The selected mode determines which runtime reg-
isters are used and which address bits are used for the base address. See Tables 60 and 61 for a listing of all registers, their
offset addresses and the associated modes. All registers are V
DD
powered.
Parallel Port Register Map
Table 60. Parallel Port Registers at First Level Offset
Offset
Mnemonic
Mode(s)
Register Name
Type
00h
DATAR
0,1
Data
R/W
AFIFO
3
ECP FIFO (Address)
W
DTR
4
Data (for EPP)
R/W
01h
DSR
0,1,2,3
Status
RO
STR
4
Status (for EPP)
RO
02h
DCR
0,1,2,3
Control
R/W
CTR
4
Control (for EPP)
R/W
03h
ADDR
4
EPP Address
R/W
04h
DATA0
4
EPP Data Port 0
R/W
05h
DATA1
4
EPP Data Port 1
R/W
06h
DATA2
4
EPP Data Port 2
R/W
07h
DATA3
4
EPP Data Port 3
R/W
400h
CFIFO
DFIFO
TFIFO
CNFGA
2
3
6
7
PP Data FIFO
ECP Data FIFO
Test FIFO
Configuration A
W
R/W
R/W
RO
401h
CNFGB
7
Configuration B
RO
402h
ECR
0,1,2,3
Extended Control
R/W
403h
EIR
1
1. These registers are extended to the standard IEEE1284 registers. They
are only accessible when enabled by bit 4 of the Parallel Port Configuration
register (see Section 3.9.3 on page 62).
0,1,2,3
Extended Index
R/W
404h
EDR
1
0,1,2,3
Extended Data
R/W
405h
EAR
1
0,1,2,3
Extended Auxiliary Status
R/W