Asynchronous Serial Interface (Uart) Mode - NEC PD78076 User Manual

Pd78078 series; pd78078y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

20.4.2 Asynchronous serial interface (UART) mode

In this mode, one byte of data is transmitted/received following the start bit, and full-duplex operation is possible.
A dedicated UART baud rate generator is incorporated, allowing communication over a wide range of baud rates.
In addition, the baud rate can be defined by scaling the input clock to the ASCK pin.
The MIDI standard baud rate (31.25 kbps) can be used by employing the dedicated UART baud rate generator.
(1) Register setting
UART mode is set using serial operating mode register 2 (CSIM2), the asynchronous serial interface mode
register (ASIM), the asynchronous serial interface status register (ASIS), and the baud rate generator control
register (BRGC).
(a) Serial operating mode register 2 (CSIM2)
CSIM2 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets CSIM2 to 00H.
When the UART mode is selected, 00H should be set in CSIM2.
Symbol
<7>
6
5
CSIM2 CSIE2
0
0
Caution Ensure that bit 0 and bits 3 through 6 are set to 0.
CHAPTER 20 SERIAL INTERFACE CHANNEL 2
4
3
2
1
0
CSIM
0
0
CSCK
0
22
Address
After Reset
R/W
FF72H
00H
R/W
CSCK
Clock Selection in 3-wire Serial I/O Mode
0
Input clock from off-chip to SCK2 pin
1
Dedicated baud rate generator output
First Bit Specification
CSIM22
0
MSB
1
LSB
CSIE2
Operation Control in 3-wire Serial I/O Mode
0
Operation stopped
1
Operation enabled
471

Advertisement

Table of Contents
loading

Table of Contents