18 uaRT
18-8
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
8.1 IrDA Receive Detection Clock (PCLK Division Ratio) Selection
Table 18.
iRClK[2:0]
Division ratio
0x7
1/128
0x6
1/64
0x5
1/32
0x4
1/16
0x3
1/8
0x2
1/4
0x1
1/2
0x0
1/1
(Default: 0x0)
note: This clock must be selected as a clock faster than sclk16.
The demodulator circuit treats Low pulses with a width of at least two IrDA receive detection clock
cycles as valid and converts them to 16
×
sclk16 cycle width Low pulses. Select a clock to enable
detection of input pulses with a minimum width of 1.41 µs.
Serial data transfer control
Data transfer control in IrDA mode is identical to that for normal interfaces. For detailed information on data
format settings and data transfer and interrupt control methods, refer to the preceding sections.
Control Register Details
18.9
9.1 List of UART Registers
Table 18.
address
Register name
Function
0x4100
UART_ST0
UART Ch.0 Status Register
Indicates transfer, buffer and error statuses.
0x4101
UART_TXD0 UART Ch.0 Transmit Data Register
Transmit data
0x4102
UART_RXD0 UART Ch.0 Receive Data Register
Receive data
0x4103
UART_MOD0 UART Ch.0 Mode Register
Sets transfer data format.
0x4104
UART_CTL0 UART Ch.0 Control Register
Controls data transfer.
0x4105
UART_EXP0 UART Ch.0 Expansion Register
Sets IrDA mode.
0x4120
UART_ST1
UART Ch.1 Status Register
Indicates transfer, buffer and error statuses.
0x4121
UART_TXD1 UART Ch.1 Transmit Data Register
Transmit data
0x4122
UART_RXD1 UART Ch.1 Receive Data Register
Receive data
0x4123
UART_MOD1 UART Ch.1 Mode Register
Sets transfer data format.
0x4124
UART_CTL1 UART Ch.1 Control Register
Controls data transfer.
0x4125
UART_EXP1 UART Ch.1 Expansion Register
Sets IrDA mode.
The UART registers are described in detail below. These are 8-bit registers.
notes: • When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
• The following UART bits should be set with transfers disabled (RXEN = 0).
- All UART_MOD
x
register bits (STPB, PMD, PREN, CHLN)
- RBFI bit in the UART_CTL
x
register
- All UART_EXP
x
register bits (IRMD, IRCLK[2:0])
uaRT Ch.
x
Status Registers (uaRT_ST
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
uaRT Ch.
x
Status Register
(uaRT_ST
x
)
0x4100
0x4120
(8 bits)
D7
–
reserved
–
–
–
0 when being read.
D6
FeR
Framing error flag
1 Error
0 Normal
0
R/W Reset by writing 1.
D5
PeR
Parity error flag
1 Error
0 Normal
0
R/W
D4
OeR
Overrun error flag
1 Error
0 Normal
0
R/W
D3
RD2B
Second byte receive flag
1 Ready
0 Empty
0
R
D2
TRBS
Transmit busy flag
1 Busy
0 Idle
0
R Shift register status
D1
RDRY
Receive data ready flag
1 Ready
0 Empty
0
R
D0
TDBe
Transmit data buffer empty flag
1 Empty
0 Not empty
1
R
D7
Reserved