10. Parallel I/O
88
Internal Data Bus
Connector J4
Debounce
Logic
Output
Data Latch
Output
Buffer
Passive
Termination
Input
Buffer
Event
Detect
Logic
Parallel Port Functional Diagram
Output Latch
The output latch stores the data present on the internal data bus during a write
operation to the parallel port. The data is latched until altered by another parallel port
write, until a system reset, or until the power is turned off. The output latch is initialized
with a logical 0 during power on and system reset.
Output Buffer
The output buffer isolates the output latch from connector J4. The output buffer is an
inverting open-collector device with 12 mA of sink current and glitch-free operation
during power cycles. The inversion means that a logical 0 written to the parallel port
appears as a TTL high at connector J4, and a logical 1 written to the parallel port
appears as a TTL low at connector J4.
The open collector feature permits each parallel I/O signal to be software configured as
an input. To use a parallel port signal as an input, a logical 0 must first be written to the
output latch. This causes the output buffer to become an open-collector gate and
prevents contention with the input signal. The passive termination ranges from 25k
Ω
minimum to 120k
Ω
maximum. Applications needing a predictable rise time should
provide additional termination.