340
CHAPTER 20 UART2, UART3
■
UART2, UART3 Operation Modes
The UART2, UART3 operates in four different modes, which are determined by the MD0- and the MD1-
bit of the Serial mode register (SMR2/SMR3). Mode 0 and 2 are used for bidirectional serial
communication, mode 1 for master/slave communication and mode 3 for LIN master/slave communication.
Note:
Mode 1 operation is supported both for master or slave operation of UART2, UART3 in a master/
slave connection system. In Mode 3 the UART2, UART3 function is locked to 8N1-Format, LSB first.
If the mode is changed, UART2, UART3 cuts off all possible transmission or reception and awaits then
new action.
The MD1 and MD0 bit of the Serial Mode Register (SMR2/SMR3) determine the operation mode of
UART2, UART3 as shown in the following table:
Table 20.1-2 UART2, UART3 Operation Modes
Operation mode
Data length
Synchronization of
mode
Length of
stop bit
data bit
direction
*
1
parity disabled
parity enabled
0
normal mode
7 bits or 8 bits
asynchronous
1 bit or 2 bits
L/M
1
multiprocessor
7 bits or 8 bits
+ 1
*2
-
asynchronous
1 bit or 2 bits
L/M
2
normal mode
8 bits
synchronous
0 bit, 1 bit or
2 bits
L/M
3
LIN mode
8 bits
-
asynchronous
1 bit
L
*1: means the data bit transfer format: LBS first or MSB first.
*2: "+1" means the indicator bit of the address/data selection in the multiprocessor mode, instead of parity.
Table 20.1-3 Mode Bit Setting
MD1
MD0
Mode
Description
0
0
0
Asynchronous (normal mode)
0
1
1
Asynchronous (multiprocessor mode)
1
0
2
Synchronous (normal mode)
1
1
3
Asynchronous (LIN mode)
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: ......