|
TUSB5152 Datasheet, PDF (61/84 Pages) Texas Instruments – USB to 2-Serial + 1-Parallel Controller With Configurable Optional Hub | |||
|
◁ |
8 IEEE 1284 Parallel-Post
8.1 1284 Registers
Table 8-2 is a summary of the parallel-port modes of operations, and Figure 8â1 illustrates the data flow for output
and input transfers. A single PPDAT register is shared for output and input transfers; the RxF/TxE signal is used for
flow control. Table 8â1 summarizes the registers provided for configuration, status monitoring, and data I/O.
Table 8â3 summarizes the port signal definition.
Table 8â1. Parallel Port Registers
REGISTER NAME ACCESS
MODE
FUNCTION
PPMCR
R/W
All
Mode control register
PPIMSK
R/W
All
Interrupt mask register
PPSTA
R/W
All
Status register
PPCTL
R/W
All
Control register
PPDAT
R/W
All
Data register
PPADR
R/W
2,3
EPP/ECP address register
Table 8â2. Parallel Port Mode Summary
MODE
DESCRIPTION
00
Centronics mode: In this mode, the port direction is output only, and the DIR bit has no effect. The MCU writes data to
PPDAT and the control signals are generated by the MCU.
SPP mode (bidirectional auto Centronicst): This is the bidirectional Centronics mode. In this mode, the port
01 direction can be changed by the DIR bit. The MCU or DMA writes data to PPDAT and the control signals are generated
automatically. This mode can support nibble operation.
ECP mode: In the output direction (DIR = 0) data written to PPADR and to PPDAT are transmitted automatically using
10 the ECP protocol. In the input direction (DIR = 1), data bytes are transferred from the peripheral and placed in the
PPDAT register. CPU or DMA transfer is supported.
EPP mode: In the output direction (DIR = 0) data written to PPADR and to PPDAT are transmitted automatically using
11 the EPP protocol. In the input direction (DIR = 1), data bytes are transferred from the peripheral and placed in the
PPDAT register. CPU or DMA transfer is supported.
NOTES: 1. 3-state CMOS output ±14-mA drive/sink (control signals only)
2. Open-drain output â14-mA sink (control signals only)
OUTPUTS
See Note 2
See Note 2
See Note 1
See Note 1
PPDAT
PPDAT
PD (0â7)
TxE
RxF
DIR
Figure 8â1. P-Port Data I/O Flow
8â1
|
▷ |