
W90220F
21
The above information is the exclusive intellectual property of Winbond Electroncs Corp. and shall not be dsiclosed or distributed or reproduced without permission from
Version 0.84
Winbond.
B. Transmitter control :
- Set IER[6] to logic 1 to enable "transmitter empty interrupt" (Irpt_THRE) before transmitter operation.
- Once the transmitter FIFO (TX-FIFO) is empty, the Irpt_THRE is triggered and the corresponding IIR
bits
are set to inform the CPU to fill the TX-FIFO (maximum 16 bytes of characters).
- The Irpt_THRE is reset after the CPU reads the IIR (IIR[4:7] must be 4'b0010 at that time) or writes a
character into TX-FIFO.
- Irpt_RDA and Irpt_TOUT has the same interrupt priority (2nd priority) while Irpt_THRE has a lower
priority (3rd priority).
- Polled Mode operation : (refer to "LSR" register discriptions located on Section 5.2.5)
- No interrupts need be enabled at this mode, the CPU always polls the LSR to check COM port status before
taking any actions.
- LSR[7] will be set as long as there is at least one byte in the RX-FIFO, and it is cleared if the RX-FIFO is
empty.
- LSR[3:6] will specify error(s) status which is handled the same way as in the interrupt mode operation, the
IIR[4:7] is not affected since no interrupt is enabled.
- LSR[2] will indicate when the TX-FIFO is empty.
- LSR[1] will indicate that both TX-FIFO and shift register are empty.
- LSR[0] will indicate whether there are any errors in the RX-FIFO.
5.1.6 SYNCHRONOUS SERIAL INTERFACE (SSI)
Overview :
The SSI module within W90220 contains holding registers, shift registers, and other logic to support a variety of
serial data communications protocols and provide a direct connection to external audio/telephony codec devices.
Two 48 halfwords fifos, the transmitter fifo and receiver fifo, have been implented to accelerate both transmittion
and receiving operations. These two fifos can be configured as 48 halfwords or 24 words depth depending on the
data word length.
Block Diagram :
TX-FIFO
(48x16/24x32)
FIFO Control
Logic
SCLK/SYNC
& Shift-in/out
control
32-bit CPU bus
32-bit TX-Shift reg
16/32
RX-FIFO
(48x16/24x32)
32-bit RX-Shift reg
16/32
SYNC
SCLK
SDI
SDO
16/32
16/32
Fig 5.1.6-1 SSI Block Diagram