280
CHAPTER 13 UART
13.1
Overview of UART
UART is a general-purpose communication interface for serial data. UART allows
variable-length serial data to be transferred synchronously or asynchronously with a
clock. The transfer format is NRZ. The dedicated baud rate generator, external clock, or
internal timer (8-bit PWM timer) settings determine the data transfer format.
■
Functions of UART
UART supports (serial I/O) functions for sending serial data to, or receiving serial data from a CPU or
peripheral functions.
The full-duplex double-buffer enables bi-directional full-duplex communication.
•
Synchronous data transfer mode or asynchronous data transfer mode can be selected.
•
The internal baud rate generator allows one of 14 baud rates to be selected. Also, external clock input
and 8-bit PWM timer output allow user-defined baud rates to be specified.
•
The length of data is variable. When no parity is used, 7 bits to 9 bits are available. When parity is used,
6 bits to 8 bits are available (Table 13.1-1 ).
•
The data transfer format is NRZ (Non Return to Zero).
Table 13.1-2 provides the transfer rates of the dedicated baud rate generator, and Table 13.1-3 provides the
transfer rates of the external clock.
Table 13.1-1 UART Operating Modes
Operating mode
Data length
Synchronization mode
Stop bit length
Parity not used
Parity used
0
7 bits
6 bits
Synchronous/asynchronous
1 bit or 2 bits *
1
8 bits
7 bits
Synchronous/asynchronous
1 bit or 2 bits *
2
8+1 bits
-
Synchronous/asynchronous
1 bit or 2 bits *
3
9 bits
8 bits
Synchronous/asynchronous
1 bit or 2 bits *
*: Only one bit is allowed for the stop bit length when data is received. The second bit is ignored even if it is received.
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......