UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 406

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
12.4.2 Asynchronous serial interface (UART) mode
performed.
baud rates.
(1) Registers used
404
In this mode, data of 1 byte is transmitted/received following a start bit, and a full-duplex operation can be
A dedicated UART baud rate generator is incorporated, so that communication can be executed at a wide range of
The basic procedure of setting an operation in the UART mode is as follows.
<1> Set the CKSR6n register (see Figures 12-13 and 12-14).
<2> Set the BRGC6n register (see Figures 12-15 and 12-16).
<3> Set bits 0 to 4 (ISRM6n, SL6n, CL6n, PS60n, PS61n) of the ASIM6n register (see Figures 12-7 and 12-8).
<4> Set bits 0 and 1 (TXDLV6n, DIR6n) of the ASICL6n register (see Figures 12-17 and 12-18).
<5> Set bit 7 (POWER6n) of the ASIM6n register to 1.
<6> Set bit 6 (TXE6n) of the ASIM6n register to 1.
<7> Write data to transmit buffer register 6n (TXB6n).
Asynchronous serial interface operation mode register 6n (ASIM6n)
Asynchronous serial interface reception error status register 6n (ASIS6n)
Asynchronous serial interface transmission status register 6n (ASIF6n)
Clock selection register 6n (CKSR6n)
Baud rate generator control register 6n (BRGC6n)
Asynchronous serial interface control register 6n (ASICL6n)
Input switch control register (ISC)
Port mode register 1 (PM1)
Port register 1 (P1)
Caution
Remark
Set bit 5 (RXE6n) of the ASIM6n register to 1.
Take relationship with the other party of communication when setting the port mode register
and port register.
n = 0, 1
CHAPTER 12 SERIAL INTERFACES UART60 AND UART61
Preliminary User’s Manual U19748EJ1V0UD
Transmission is enabled.
Reception is enabled.
Data transmission is started.

Related parts for UPD78F0838