CD2401 Intel, CD2401 Datasheet - Page 43

no-image

CD2401

Manufacturer Part Number
CD2401
Description
Multi-protocol Communications Controller
Manufacturer
Intel
Datasheet
5.3
5.3.1
5.3.2
5.3.3
Datasheet
When an interrupt request line is asserted, the Fair bit for that type of interrupt on the asserting
device is cleared. The Fair bit remains cleared until the interrupt line returns to a high state. The
CD2401 does not assert a new interrupt of that type while the corresponding Fair bit is cleared.
Therefore, when multiple CD2401s assert interrupts together, each one is serviced in turn, before
they can reassert the same interrupt type.
The IREQn* interrupt request lines are open-drain outputs that can be tied together in groups of the
same type, creating a Fair Share scheme for each group of interrupts. Alternatively, all three groups
can be tied to a common request using the CD2401 internal-priority scheme (see
FIFO and Timer Operations
Each channel in the CD2401 has a 16-byte receive FIFO and a 16-byte transmit FIFO. The FIFOs
are accessible through RDR and TDR. These Virtual registers are shared among the four channels;
therefore, they cannot be accessed outside an interrupt context.
The threshold level of each channel is common for both FIFOs and is set by COR4, with a
maximum threshold value of 12. The FIFO threshold is meaningful in both DMA and non-DMA
modes. In DMA mode, the FIFO threshold determines when transfer bursts should occur. In non-
DMA mode, the threshold level determines when transfer interrupts are asserted.
Receive FIFO Operation
In the Asynchronous mode, a Good Data interrupt is initiated when the number of characters in
the FIFO is greater than the FIFO threshold. Note that receive timeout and receive data exception
conditions also cause an interrupt to the host.
In Synchronous mode, an interrupt request for data transfer is initiated when the number of
characters is greater than the FIFO threshold or an end of frame is reached.
Transmit FIFO Operation
The TxEmpty and TxD bits (IER[1:0]) control the generation of transmit FIFO interrupts. The
CD2401 initiates an interrupt request for more data when the number of empty bytes in the FIFO is
greater than the threshold set. During synchronous operation when the last byte of the frame is
transferred to the FIFO, the CD2401 stops asserting transmit interrupts until the frame is sent.
Timers
The global TPR provides a timer prescale ‘tick’ as a clock source for the timers. The TPR counter
is clocked by the system clock (CLK) divided by 2048. To maintain timer accuracy, the TPR
should not be programmed with a value not less than 16 (10 hex) — a ‘tick’ of about 1 millisecond
when CLK is 33 MHz.
Each channel has two timers, one 16-bit general timer 1 (GT1) and one 8-bit general timer 2 (GT2).
Their operation and programming are different in synchronous and asynchronous protocols.
Multi-Protocol Communications Controller — CD2401
Section
5.2.4.1).
43

Related parts for CD2401