10 UART (UART)
10-12
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Bit 9
RBSY
This bit indicates the receiving status. (See Figure 10.5.3.1.)
1 (R):
During receiving
0 (R):
Idle
Bit 8
TBSY
This bit indicates the sending status. (See Figure 10.5.2.1.)
1 (R):
During sending
0 (R):
Idle
Bit 7
Reserved
Bit 6
TenDiF
Bit 5
FeiF
Bit 4
PeiF
Bit 3
OeiF
Bit 2
RB2FiF
Bit 1
RB1FiF
Bit 0
TBeiF
These bits indicate the UART interrupt cause occurrence status.
1 (R):
Cause of interrupt occurred
0 (R):
No cause of interrupt occurred
1 (W):
Clear flag
0 (W):
Ineffective
The following shows the correspondence between the bit and interrupt:
UA
n
INTF.TENDIF bit: End-of-transmission interrupt
UA
n
INTF.FEIF bit:
Framing error interrupt
UA
n
INTF.PEIF bit:
Parity error interrupt
UA
n
INTF.OEIF bit:
Overrun error interrupt
UA
n
INTF.RB2FIF bit: Receive buffer two bytes full interrupt
UA
n
INTF.RB1FIF bit: Receive buffer one byte full interrupt
UA
n
INTF.TBEIF bit: Transmit buffer empty interrupt
uaRT Ch.
n
interrupt enable Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
UA
n
INTE
15–8 –
0x00
–
R
–
7
–
0
–
R
6
TENDIE
0
H0
R/W
5
FEIE
0
H0
R/W
4
PEIE
0
H0
R/W
3
OEIE
0
H0
R/W
2
RB2FIE
0
H0
R/W
1
RB1FIE
0
H0
R/W
0
TBEIE
0
H0
R/W
Bits 15–7 Reserved
Bit 6
TenDie
Bit 5
Feie
Bit 4
Peie
Bit 3
Oeie
Bit 2
RB2Fie
Bit 1
RB1Fie
Bit 0
TBeie
These bits enable UART interrupts.
1 (R/W): Enable interrupts
0 (R/W): Disable interrupts