NEC mPD780344 Series User Manual page 301

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Communication operations
(a) Data format
Figure 16-7 shows the format of the transmit/receive data.
Figure 16-7. Format of Transmit/Receive Data in Asynchronous Serial Interface
Start
bit
1 data frame consists of the following bits.
• Start bit ............. 1 bit
• Character bits ... 7 bits or 8 bits (LSB first)
• Parity bit ........... Even parity, odd parity, zero parity, or no parity
• Stop bit(s) ......... 1 bit or 2 bits
Asynchronous serial interface mode register 0 (ASIM0) is used to set the character bit length, parity selection,
and stop bit length within each data frame.
When "7 bits" is selected as the number of character bits, only the lower 7 bits (bits 0 to 6) are valid, so that
during a transmission the highest bit (bit 7) is ignored and during reception the highest bit (bit 7) must be
set to "0".
Baud rate generator control register 0 (BRGC0) is used to set the serial transfer rate.
If a receive error occurs, information about the receive error can be recognized by reading asynchronous
serial interface status register 0 (ASIS0).
CHAPTER 16 SERIAL INTERFACE UART0
1 data frame
D0
D1
D2
D3
D4
Character bits
User's Manual U15798EJ2V0UD
Parity
Stop bit
D5
D6
D7
bit
301

Advertisement

Table of Contents
loading

Table of Contents