367
CHAPTER 20 UART2, UART3
MB90V390HA/MB90V390HB/MB90394HA:
This paragraph is only relevant, if UART2, 3 operates in
mode 3 as a LIN slave.
If the bus (serial input) goes "0" (dominant) for more than 11 bit times, the LIN Break Detected (LBD) flag
bit of the Extended Status/Control Register (ESCR2/ESCR3) is set to "1". Note, that in this case after 9 bit
times the reception error flags are set to "1", therefore the RXE flag has to be set to "0", if only a LIN synch
break detect is desired.
The interrupt and the LBD flag are cleared after writing a "1" to the LBD flag. This has to be performed
before input capture interrupt for LIN synch field.
●
LIN Synchronization Field Edge Detection Interrupts
This paragraph is only relevant, if UART2, UART3 operates in mode 3 as a LIN slave. After a LIN synch
break detection the next falling edge of the reception bus is indicated by UART2, UART3. Simultaneously
an internal signal connected to the ICU1/ICU3/ICU5 is set to "1". This signal is reset to "0" after the fifth
falling edge of the LIN Synchronization Field. In both cases the ICU1/ICU3/ICU5 generates an interrupt, if
"both edge detection" and the ICU1/ICU3/ICU5 interrupt are enabled. The difference of the ICU1/ICU3/
ICU5 counter values is the serial clock multiplied by 8. Dividing it by 8 results in the new detected and
calculated baud rate for the dedicated reload counter. This value - 1 has then to be written to the Baud Rate
Generator Registers (BGR02/BGR03 and BGR12/BGR13).There is no need to restart the reload counter,
because it is automatically reset if a falling edge of a start bit is detected.
■
LIN-UART2, UART3 Interrupts and EI
2
OS
Table 20.5-2 UART2, UART3 Interrupt and EI
2
OS
Interrupt cause
Interrupt
number
Interrupt control register
Vector table address
EI
2
OS
Register name
Address
Lower
Upper
Bank
UART2 reception
interrupt
#39(27
H
)
ICR14
0000BE
H
FFFF60
H
FFFF61
H
FFFF62
H
*1
UART2 transmission
interrupt
#40(28
H
)
ICR14
0000BE
H
FFFF5C
H
FFFF5D
H
FFFF5E
H
*2
UART3 reception
interrupt
#39(27
H
)
ICR14
0000BE
H
FFFF60
H
FFFF61
H
FFFF62
H
*3
UART3 transmission
interrupt
#40(28
H
)
ICR14
0000BE
H
FFFF5C
H
FFFF5D
H
FFFF5E
H
*4
*1: EI
2
OS service for UART2 reception is usable only if UART2 transmission interrupt and both of transmission and
reception interrupt of UART3 are disabled. When detecting receive errors, stop request for EI
2
OS service is supported.
*2: EI
2
OS service for UART2 transmission is usable only if UART2 reception interrupt and both of transmission and
reception interrupt of UART3 are disabled.
*3: EI
2
OS service for UART3 reception is usable only if UART3 transmission interrupt and both of transmission and
reception interrupt of UART2 are disabled. When detecting receive errors, stop request for EI
2
OS service is supported.
*4: EI
2
OS service for UART3 transmission is usable only if for UART3 reception interrupt and both of transmission and
reception interrupt of UART2 are disabled.
Summary of Contents for MB90390 Series
Page 2: ......
Page 4: ......
Page 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Page 18: ...xiv ...
Page 132: ...104 CHAPTER 5 CLOCKS ...
Page 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Page 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Page 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Page 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Page 274: ...246 CHAPTER 15 WATCH TIMER ...
Page 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Page 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Page 364: ...336 CHAPTER 19 UART0 UART1 ...
Page 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Page 432: ...404 CHAPTER 20 UART2 UART3 ...
Page 482: ...454 CHAPTER 22 SERIAL I O ...
Page 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Page 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Page 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Page 722: ...694 APPENDIX ...
Page 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Page 740: ......