English
Language : 

CD1283 Datasheet, PDF (66/94 Pages) Intel Corporation – IEEE 1284-Compatible Parallel Interface
CD1283 — IEEE 1284-Compatible Parallel Interface
7.3.15
Run-Length Count Register
Register Name: RLCR
Register Description: Run-Length Count
Access: R/W
Bit 7
Bit 6
Bit 5
0
Bit 4
Bit 3
Bit 2
7-Bit Unsigned Binary Count
8-Bit Hex Address: 37
Default Value: 00
Bit 1
Bit 0
This register works with PFHR1 and PFHR2 to perform run-length encoding/decoding when the
RLEen bit (PFCR[3]) is set (the parallel port must be in ECP mode; in other modes, run-length
encoding will not occur).
In the transmit direction, strings of three or more identical characters are recognized and
compressed. The running count of identical characters is kept in the RLCR. Once the sequence is
broken by a different character or the end of the transmit burst transfer, the count and a single copy
of the duplicated character are put in the FIFO.
In the receive direction, run-length codes can be received from the remote device. These codes are
recognized ‘on the fly’ as data flows from the FIFO through the Holding register pipeline. A run-
length code is diverted to the RLCR. The subsequent character from the FIFO is duplicated (held in
PFHR1) while the RLCR is decremented. Once the RLCR reaches zero, normal pipeline data
movement is resumed. If run-length codes are being received by the parallel port but RLEen is not
set, the codes will enter PFHR1 and PFHR2 as tagged data and cause interrupts to the host. The
host must directly read the tagged Holding register to remove the character from the pipeline and
clear the tag.
7.3.16
Stale Data Timer Count Register
Register Name: SDTCR
Register Description: Stale Data Timer Count
Access: R/W
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
8-Bit Stale Data Timer Count
Bit 2
8-Bit Hex Address: 3D
Default Value: 00
Bit 1
Bit 0
This register determines the period used to signal stale data in the FIFO. The timer is used only in
the receive direction. Each time a new character is placed in the FIFO from the parallel port, the
SDTCR is reloaded from the SDTPR and down-counting begins at the tick rate. If the counter
reaches zero, the Stale bit (PFSR[2]) is set. If the amount of data available is greater than or equal
to one word, a DMA request is made to move all remaining whole words to the host by DMA
transfer. Once the DMA transfer is complete, a single remaining character causes an interrupt to the
host to remove the character by reading PFHR2.
This register is cleared by device or FIFO reset. Clearing it manually causes the Stale bit to be true.
66
Datasheet