257
10.7 Asynchronous (Start-Stop) Mode
10.7 Asynchronous (Start-Stop) Mode
The UART handles data of only NRZ (nonreturn-to-zero) format.
Data transfer begins with a start bit (L-level data) for the specified number of data bits
in LSB first mode and ends with a stop bit (H-level data). When the external clock is
selected, always input the clock signal.
■
Format of Data Transferred in Asynchronous (Start-Stop) Mode
Figure 10.7-1 shows the format of data transferred in asynchronous (start-stop) mode.
The data length can be seven or eight bits in normal mode (mode 0), but must be eight bits in
multiprocessor mode (mode 1). An A/D bit is always added to data in multiprocessor mode
instead of a parity bit.
Figure 10.7-1 Format of Data Transferred in Asynchronous (Start-Stop) Mode (Mode 0 or 1)
❍
Receive operation
The UART performs a receive operation as long as the RXE bit (bit 1) of the SCR register is "1".
When a start bit appears on the receiving line, one data frame is received based on the data
format specified by the SCR register. If an error occurs after a frame has been received, an
error flag is set and the RDRF flag (bit 4 of the SSR register) is set subsequently, thereby
causing a receiver interrupt to the CPU if the RIE bit (bit 1) of the same SSR register has been
set to "1". Ensure in the program design that the flags of the SSR register are checked and the
SIDR register is read if normal reception is indicated, while the necessary processing for a
countermeasure is performed if an error is indicated.
The RDRF flag is cleared when the SIDR register is read.
❍
Transmit operation
Transmission data is written to the SODR register when the TDRE flag (bit 11) of the SSR
register is "1". When the TXE bit (bit 0) of the SCR register is "1", the written data is
transmitted.
When the data written to the SODR register is loaded to the transmission shift register and
transmission begins, the TDRE flag is set again so that the next instance of transmission data
can be written. If the TIE bit (bit 0) of the same SSR register has been set to "1", a transmitter
interrupt occurs in the CPU and a request to write transmission data to the SODR register is
issued.
The TDRE flag is cleared when data is written to the SODR register.
SI,SO
Start
LSB
MSB Stop
A/D Stop
Transferred data is 01001101
(Mode 0)
(Mode 1)
0
1
0
0
0
0
1
1
1
B
Summary of Contents for MB91F109
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...
Page 4: ......
Page 10: ...vi ...
Page 24: ...xx ...
Page 96: ...72 CHAPTER 2 CPU ...
Page 224: ...200 CHAPTER 4 BUS INTERFACE ...
Page 234: ...210 CHAPTER 5 I O PORTS ...
Page 268: ...244 CHAPTER 9 U TIMER ...
Page 290: ...266 CHAPTER 10 UART ...
Page 314: ...290 CHAPTER 12 16 BIT RELOAD TIMER ...
Page 322: ...298 CHAPTER 13 BIT SEARCH MODULE ...
Page 392: ...368 CHAPTER 16 FLASH MEMORY ...
Page 432: ...408 APPENDIX E Instructions F Table E 2 Instruction Formats OP rel11 5 11 ...
Page 448: ...424 APPENDIX E Instructions ...
Page 449: ...425 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 458: ...434 INDEX ...
Page 460: ......
Page 461: ...FUJITSU SEMICONDUCTOR FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...