Uart Interrupts; Transmit Interrupt; Receive Interrupt - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

10.5

UART Interrupts

The UART has three interrupt causes -- transfer error interrupt, receive data full
interrupt and transmit data empty interrupt:
• When receive data is transferred from the receive shift register to the serial input data
register (SIDR) (receive interrupt)
• When transmit data is transferred from the serial output data register (SODR) to the
transmit shift register (transmit interrupt)
I Transmit interrupt
When transmission is enabled, writing transmit data to SODR register transfers the transmit data to the
transmit register. The transmit data is converted to serial in the transmit shift register and sent to the serial
data transmit pin (SO).
When the UART is ready to accept next data, the TDRE is set to "1", and an interrupt request (IRQ4) to the
CPU is generated if transmit interrupt request is enabled (SSD: TIE = "1").
I Receive interrupt
When the data is received normally (stop bit is detected), the RDRF is set to "1".
When an overrun error, a framing error or a parity error occurs, their corresponding error flag bit is set to
"1". These bits are set when the stop bit(s) are detected, and an interrupt request (IRQ4) to the CPU is
generated if receive interrupt is enabled (SSD: RIE = "1").
I Registers and vector tables for UART interrupts
Table 10.5-1 Registers and vector tables for UART interrupts
Interrupt
IRQ4
See Section 3.4.2 "Interrupt Processing" for details on the interrupt operation.
Interrupt level setting register
Register
ILR2 (007D
)
L41 (Bit 1)
H
Setting bits
L40 (Bit 0)
CHAPTER 10 UART
Vector table address
Upper
Lower
FFF2
FFF3
H
H
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents