215
CHAPTER 10 UART
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)
■
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").
■
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").
■
Registers and vector tables for UART interrupts
See Section 3.4.2 "Interrupt Processing" for details on the interrupt operation.
Table 10.5-1 Registers and vector tables for UART interrupts
Interrupt
Interrupt level setting register
Vector table address
Register
Setting bits
Upper
Lower
IRQ4
ILR2 (007D
H
)
L41 (Bit 1)
L40 (Bit 0)
FFF2
H
FFF3
H
Summary of Contents for MB89950 Series
Page 2: ......
Page 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Page 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Page 236: ...222 CHAPTER 10 UART ...
Page 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Page 310: ...296 APPENDIX ...
Page 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 316: ...302 INDEX ...
Page 318: ......