![background image](http://html.mh-extra.com/html/fujitsu/mb90390-series/mb90390-series_hardware-manual_118501431.webp)
403
CHAPTER 20 UART2, UART3
●
A/D bit (serial control register (SCR2/SCR3): address/data type select bit)
The behavior of this bit is different between MB90V390H/MB90F394H(A) and MB90V390HA/
MB90V390HB/MB90394HA.
MB90V390H/MB90F394H(A):
•
Special care has to be taken when using the A/D bit (Address-Data-Bit for multiprocessor mode 1) of
the Serial Control Register. This bit is both a control and a flag bit, because writing to it sets the A/D bit
for transmission, whereas reading from it returns the last received A/D bit. Internally, the received and
the transmitted value are stored in different registers, but in Read-Modify-Write instructions, the
received value is read, modified and then written back for transmission. This can lead to a wrong value
in the A/D bit, when one of the other bits in the same register is accessed by an instruction of this kind.
Therefore, this bit should be written by the last register access before transmission. Alternatively, using
byte wise access and writing the correct values for all bits at once avoids this problem.
•
Furthermore, the A/D bit is not buffered like the transmission data register.
Changing the bit during transmission will alter the A/D bit of the currently transmitted data.
MB90V390HA/MB90V390HB/MB90394HA:
•
This bit is both a control and a flag bit, because writing to it sets the A/D bit for transmission, whereas
reading from it returns the last received A/D bit. Internally, the received and the transmitted A/D bit
values are stored in different registers.
The A/D bit of the transmission is read when the RMW system instruction is used, and the received A/D
data is read as for other reading.
•
When the TDRE bit becomes "1" from "0" when the transmission operates, the A/D bit for the
transmission is loaded into the transmission shift register with the data of the transmission data register
(TDR2/TDR3). Therefore, set the A/D bit to the A/D bit for the transmission before writing in the
transmission data register (TDR2/TDR3).
●
Software reset of UART2/UART3
Perform the software reset (SMR2/SMR3:UPCL=1), when the TXE bit of the SCR2/SCR3 register is "1".
●
LIN Synch field wait state
MB90V390H/MB90F394H(A):
In modes 0 and 3, the LBD bit in the ESCR2/ESCR3 register is set to "1"
if the serial input is kept at "0" for more than equal to 11-bit times. When LBD is set to "1", the reception
error flags (SSR2/SSR3:FRE, SSR2/SSR3:ORE, SSR2/SSR3:PE) and the reception data register full flag
(SSR2/SSR3:RDRF) are cleared. Then the UART2, UART3 waits for the following synch field to be
received. If the UART2, UART3 is set into this state for other reasons than the synch break, it should be
initialized by the software reset (SMR2/SMR3: UPCL=1).
MB90V390HA/MB90V390HB/MB90394HA:
In mode 3 (LIN operation), the LBD bit in the ESCR2/
ESCR3 register is set to "1" if the serial input is kept at "0" for more than equal to 11-bit times. Then the
UART2, UART3 waits for the following synch field to be received. If the UART2, UART3 is set into this
state for other reasons than the synch break, it should be initialized by the software reset (SMR2/
SMR3:UPCL=1).
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: ......