SB16C1054PCI_Data Sheet_EN

SB16C1054PCI
PCI Target Interface Controller
with Quad-UART
JULY 2013 REV 1.04
70
Table 14-2: SB16C1054PCI Programming Guidecontinued
Command
Action
5. Read Data
6. Output TX
Else
For (Cnt = 0; Cnt < temp3; Cnt++)
Read TX_Data from TX_User_Buffer
Set THR to TX_Data
Return from Interrupt Service Routine
Serial Input Process
1. RX Interrupt is generated and Jumped to
Interrupt Service Routine
2. Read ISR
3. Check TX Interrupt Status
4. Read RX FIFO Count
5. Read RX Data
5. Read Data
Read ISR, then save in temp1
If temp1 = xx00_0100b then
Goto RX Interrupt Service Routine
Else if temp1 = xx00_0010b then
Goto TX Interrupt Service Routine
Else
Return from Interrupt Service Routine
TX Interrupt Service Routine:
..
RX Interrupt Service Routine:
Read MCR, then save in temp2
Set MCR to (temp2 OR 40h)
Read RCR, then save in temp3
Set MCR to temp2
If temp1[6] = 1b then
For (Cnt = 0; Cnt <= 255; Cnt++)
Read RBR, save in RX_User_Buffer
Else
For (Cnt = 0; Cnt < temp3; Cnt++)
Read RBR, save in RX_User_Buffer
Return from Interrupt Service Routine