303
CHAPTER 13 UART
13.5
Interrupt of UART
UART supports the interrupt-related error flag bit (ORFE), received data flag bit (RDRF),
and transmitted data flag bit (TDRE), and the following interrupt sources:
• When received data is sent from the reception shift register to the serial input data
register (SIDR). (Reception interrupt)
• When transmitted data is sent from the serial output data register (SODR) to the
transmission shift register. (Transmission interrupt)
■
Transmission Interrupt
When the SSD register is read and the output data is written into the SODR register, the data written into
the SODR register is transferred to the internal transmission shift register. When next data becomes
writable, the TDRE bit is set to "1", then an interrupt request to the CPU (IRQ5) is generated if the
transmission interrupt is enabled (SSD: TIE = 1).
■
Reception Interrupt
●
When operating mode is 0, 1, or 3
When data is correctly input up to the stop bit, the RDRF bit is set to "1". If an overrun error or framing
error occurs, the ORFE bit is set to "1".
These bits are set when a stop bit is detected. If the reception interrupt is enabled (SSD: RIE = 1), an
interrupt request to the CPU (IRQ6) is generated.
●
When operating mode is 2
For both RDRF and ORFE, data is received or transmitted with the final data bit (D8) set to "1", these flags
go on when the stop bit at the end is detected. However, when the framing error occurs, the flag goes on
regardless of the final data bit. An interrupt request to the CPU is generated when the flag goes on and the
input data becomes "1".
■
UART Interrupt Related Registers and Vector Table Addresses
Table 13.5-1 provides the registers relating to the UART interrupts and vector table addresses. For details
of the interrupt operation, see Section "3.4.2 Steps in the Interrupt Operation ".
Table 13.5-1 UART Interrupt Related Registers and Vector Table Addresses
Interrupt name
Interrupt level setting register
Vector table address
Register
Bit
Upper digits
Lower digits
IRQ5
ILR2 (007C
H
)
L51 (bit3)
L50 (bit2)
FFF0
H
FFF1
H
IRQ6
ILR2 (007C
H
)
L61 (bit5)
L60 (bit4)
FFEE
H
FFEF
H
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......