Datasheet
78K0/Ix2 CHAPTER 14 SERIAL INTERFACE UART6/DALI
R01UH0010EJ0500 Rev.5.00 446
Feb 28, 2012
14.4.2 Asynchronous serial interface (UART) mode
In this mode, data of 1 byte is transmitted/received following a start bit, and a full-duplex operation can be performed.
A dedicated UART baud rate generator is incorporated, so that communication can be executed at a wide range of
baud rates.
(1) Registers used
UART/DALI mode control register (UADLCTL)
UART/DALI operation mode register 6 (ASIM6)
UART/DALI reception error status register 6 (ASIS6)
UART transmission status register 6 (ASIF6)
Clock selection register 6 (CKSR6)
Baud rate generator control register 6 (BRGC6)
UART/DALI transmit buffer register 6 (TXB6)
LIN operation control register 6 (ASICL6)
Input switch control register (ISC)
Port mode register 6 (PM6)
Port register 6 (P6)
Port output mode register 6 (POM6)
The basic procedure of setting an operation in the UART mode is as follows.
<1> Clear bit 0 (UADLSEL) of UADLCTL register to 0 (refer to Figure 14-5).
<2> Set the CKSR6 register (refer to Figure 14-9).
<3> Set the BRGC6 register (refer to Figure 14-10).
<4> Set bits 0 to 4 (ISRM6, SL6, CL6, PS60, PS61) of the ASIM6 register (refer to Figure 14-6).
<5> Set bits 0 and 1 (TXDLV6, DIR6) of the ASICL6 register (refer to Figure 14-11).
<6> Set bit 7 (POWER6) of the ASIM6 register to 1.
<7> Set bit 6 (TXE6) of the ASIM6 register to 1. Transmission is enabled.
Set bit 5 (RXE6) of the ASIM6 register to 1. Reception is enabled.
<8> Write data to TXB6 register. Data transmission is started.
Caution Take relationship with the other party of communication when setting the port mode register and
port register.