258
CHAPTER 10 UART
10.8 CLK Synchronous Mode

The UART handles only data of NRZ (nonreturn-to-zero) format. Figure 10.8-1 shows

the relationship between the transmission/reception clock and the data.

■Format of Data Transferred in CLK Synchronous Mode
Figure 10.8-1 Format of Data Transferred in CLK Synchronous Mode (Mode 2)
When CS0 is set to "0" to select U-TIMER output, transmitting data autom atically generates
synchronizing clock pulses for receiving data.
When the external clock is selected, clock pulses of exactly one byte must be supplied after
ensuring that there is data in the transmission data buffer SODR registe r of the UART on the
transmitting end (The TDRE flag is "0"). The mark level before and after trans miss i on m us t als o
be ensured.
The data length can only be eight bits, and no parity bit can be added. Since no start and stop
bits are used, only overrun errors are detected.
❍Initialization
The values that must be set in individual cont rol regis ters f or using C LK sync hronous mode are
shown below:
• SMR register
• MD1, MD0: 10
• CS: Clock input
• SCKE: 1 for i nternal timer or 0 for external timer
• SOE: 1 for transmission or 0 for reception only
SC
RXE,TXE
SI,SO
LSB MSB
SODR write
Mark
(Mode 2)
1111
000 0
The transferred data item is 01001101B.