SB16C1058-TQFP128 IK Semicon Co., Ltd, SB16C1058-TQFP128 Datasheet - Page 58

no-image

SB16C1058-TQFP128

Manufacturer Part Number
SB16C1058-TQFP128
Description
Octal-uart Controller With 256-byte Fifo
Manufacturer
IK Semicon Co., Ltd
Datasheet
IN16C1058
OCTAL UART WITH 256-BYTE FIFO
JUNE 2009
58
REV 1.0
Table 32:
Command
Initialize Process
1. Set Baud Rate to 0001h
2. Set TTR to 20h
3. Set RTR to 80h
4. Enable 256-byte FIFO
5. Set Line Control Register to 8-data but,
6. Enable TX, RX interrupts
Serial Output Process
1. TX Interrupt is generated and Jumped to
2. Read ISR
3. Check TX Interrupt Status
4. Read TX FIFO Count
5. Read Data
6. Output TX
5. Read Data
6. Output TX
Interrupt Service Routine
no parity, 1 stop bit
IN16C1058 Programming Guide
Action
Read LCR, then save in temp
Set LCR to 80h
Set DLL to 01h
Set DLM to 00h
Set LCR to temp
Set LCR to BFh
Set PSR to A5h
Set TTR to 20h
Set RTR to 80h
Set AFR to 01h
Set PSR to A4h
Set LCR to 03h
Set IER to 03h
Read ISR, then save in temp1
If temp1 = xx00_0100b then
Else if temp1 = xx00_0010b then
Else
RX Interrupt Service Routine:
TX Interrupt Service Routine:
Read MCR, then save in temp2
Set MCR to (temp2 OR 40h)
Read TCR, then save in temp3
Set MCR to temp2
If temp1[7] = 1b then
Else if temp3 > 128 then
…..
For (Cnt = 0; Cnt <= 127; Cnt++)
For (Cnt = 0; Cnt <= 127; Cnt++)
Goto RX Interrupt Service Routine
Goto TX Interrupt Service Routine
Return from Interrupt Service Routine
Read TX_Data from TX_User_Buffer
Set THR to TX_Data
Read TX_Data from TX_User_Buffer
Set THR to TX_Data

Related parts for SB16C1058-TQFP128