Interrupt Of Uart; Transmission Interrupt; Reception Interrupt - Fujitsu F2MC-8L F202RA Hardware Manual

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

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
IRQ5
IRQ6
Interrupt level setting register
Register
ILR2 (007C
)
L51 (bit3)
H
ILR2 (007C
)
L61 (bit5)
H
Bit
Upper digits
FFF0
L50 (bit2)
FFEE
L60 (bit4)
CHAPTER 13 UART
Vector table address
Lower digits
FFF1
H
H
FFEF
H
H
303

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents