ST16C654/654D xr
REV. 5.0.2 2.97V TO 5.5V QUAD UART WITH 64-BYTE FIFO
I
TABLE OF CONTENTS
GENERAL DESCRIPTION .................................................................................................1
FEATURES .....................................................................................................................................................1
APPLICATIONS................................................................................................................................................1
FIGURE 1. ST16C654 BLOCK DIAGRAM ........................................................................................................................................... 1
FIGURE 2. PIN OUT ASSIGNMENT FOR 100-PIN QFP PACKAGES IN 16 AND 68 MODE........................................................................ 2
FIGURE 3. PIN OUT ASSIGNMENT FOR PLCC PACKAGES IN 16 AND 68 MODE AND LQFP PACKAGES................................................ 3
ORDERING INFORMATION.................................................................................................................................3
PIN DESCRIPTIONS .........................................................................................................4
1.0 PRODUCT DESCRIPTION .....................................................................................................................8
2.0 FUNCTIONAL DESCRIPTIONS .............................................................................................................9
2.1 CPU INTERFACE .............................................................................................................................................. 9
FIGURE 4. ST16C654/654D TYPICAL INTEL/MOTOROLA DATA BUS INTERCONNECTIONS ................................................................... 9
2.2 DEVICE RESET .............................................................................................................................................. 10
2.3 CHANNEL SELECTION .................................................................................................................................. 10
TABLE 1: CHANNEL A-D SELECT IN 16 MODE ................................................................................................................................. 10
TABLE 2: CHANNEL A-D SELECT IN 68 MODE ................................................................................................................................. 10
2.4 CHANNELS A-D INTERNAL REGISTERS .................................................................................................... 11
2.5 INT OUPUTS FOR CHANNELS A-D .............................................................................................................. 11
TABLE 3: INT PINS OPERATION FOR TRANSMITTER FOR CHANNELS A-D ......................................................................................... 11
TABLE 4: INT PIN OPERATION FOR RECEIVER FOR CHANNELS A-D ................................................................................................. 11
2.6 DMA MODE ..................................................................................................................................................... 11
TABLE 5: TXRDY# AND RXRDY# OUTPUTS IN FIFO AND DMA MODE FOR CHANNELS A-D ........................................................... 12
2.7 CRYSTAL OSCILLATOR OR EXTERNAL CLOCK INPUT ........................................................................... 12
FIGURE 5. TYPICAL OSCILLATOR CONNECTIONS............................................................................................................................... 12
2.8 PROGRAMMABLE BAUD RATE GENERATOR ........................................................................................... 12
FIGURE 6. BAUD RATE GENERATOR AND PRESCALER ..................................................................................................................... 13
TABLE 6: TYPICAL DATA RATES WITH A 14.7456 MHZ CRYSTAL OR EXTERNAL CLOCK ...................................................................... 13
2.9 TRANSMITTER ............................................................................................................................................... 13
2.9.1 TRANSMIT HOLDING REGISTER (THR) - WRITE ONLY......................................................................................... 13
2.9.2 TRANSMITTER OPERATION IN NON-FIFO MODE .................................................................................................. 14
FIGURE 7. TRANSMITTER OPERATION IN NON-FIFO MODE .............................................................................................................. 14
2.9.3 TRANSMITTER OPERATION IN FIFO MODE ........................................................................................................... 14
FIGURE 8. TRANSMITTER OPERATION IN FIFO AND FLOW CONTROL MODE ..................................................................................... 14
2.10 RECEIVER .................................................................................................................................................... 15
2.10.1 RECEIVE HOLDING REGISTER (RHR) - READ-ONLY .......................................................................................... 15
FIGURE 9. RECEIVER OPERATION IN NON-FIFO MODE .................................................................................................................... 15
FIGURE 10. RECEIVER OPERATION IN FIFO AND AUTO RTS FLOW CONTROL MODE ....................................................................... 16
2.11 AUTO RTS HARDWARE FLOW CONTROL ................................................................................................ 16
2.12 AUTO CTS FLOW CONTROL ..................................................................................................................... 16
FIGURE 11. AUTO RTS AND CTS FLOW CONTROL OPERATION ....................................................................................................... 17
TABLE 7: AUTO RTS/CTS FLOW CONTROL .................................................................................................................................... 17
2.13 AUTO XON/XOFF (SOFTWARE) FLOW CONTROL ................................................................................... 18
TABLE 8: AUTO XON/XOFF (SOFTWARE) FLOW CONTROL ............................................................................................................... 18
2.14 SPECIAL CHARACTER DETECT ............................................................................................................... 18
2.15 INFRARED MODE ........................................................................................................................................ 19
FIGURE 12. INFRARED TRANSMIT DATA ENCODING AND RECEIVE DATA DECODING .......................................................................... 19
2.16 SLEEP MODE WITH AUTO WAKE-UP ....................................................................................................... 20
2.17 INTERNAL LOOPBACK .............................................................................................................................. 20
FIGURE 13. INTERNAL LOOP BACK IN CHANNEL A AND B ................................................................................................................ 21
3.0 UART INTERNAL REGISTERS ...........................................................................................................22
TABLE 9: UART CHANNEL A AND B UART INTERNAL REGISTERS...................................................................................... 22
TABLE 10: INTERNAL REGISTERS DESCRIPTION. SHADED BITS ARE ENABLED WHEN EFR BIT-4=1....................................... 23
4.0 INTERNAL REGISTER DESCRIPTIONS .............................................................................................24
4.1 RECEIVE HOLDING REGISTER (RHR) - READ- ONLY ............................................................................... 24
4.2 TRANSMIT HOLDING REGISTER (THR) - WRITE-ONLY ............................................................................ 24
4.3 INTERRUPT ENABLE REGISTER (IER) - READ/WRITE .............................................................................. 24
4.3.1 IER VERSUS RECEIVE FIFO INTERRUPT MODE OPERATION ............................................................................. 24
4.3.2 IER VERSUS RECEIVE/TRANSMIT FIFO POLLED MODE OPERATION................................................................ 25
4.4 INTERRUPT STATUS REGISTER (ISR) - READ-ONLY ............................................................................... 26