3-Wire Serial I/O Mode Operation - NEC PD78076 User Manual

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

Advertisement

19.4.2 3-wire serial I/O mode operation

The 3-wire serial I/O mode is valid for connection of peripheral I/O units and display controllers which incorporate
a conventional synchronous serial interface such as the 75X/XL, 78K, and 17K Series.
Communication is carried out with three lines of serial clock (SCK1), serial output (SO1) and serial input (SI1).
(1) Register setting
The 3-wire serial I/O mode is set with the serial operating mode register 1 (CSIM1).
CSIM1 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets CSIM1 to 00H.
Symbol
<7>
6
<5>
CSIM1 CSIE1 DIR
ATE
Serial Interface Channel 1 Clock Selection
CSIM11
CSIM10
0
x
Clock externally input to SCK1 pin
1
0
8-bit timer register 2 (TM2) output
1
1
Clock specified with bits 4 to 7 of timer clock select register 3 (TCL3)
ATE
Serial Interface Channel 1 Operating Mode Selection
0
3-wire serial I/O mode
1
3-wire serial I/O mode with automatic transmit/receive function
DIR
0
1
CSIE
CSIM
PM20
P20 PM21 P21 PM22
1
11
Note 1
Note 1 Note 1 Note 1 Note 1
0
x
x
x
0
Note 2
Note 2
1
1
x
1
Notes 1. If the external clock input has been selected with CSIM11 set to 0, set bit 1 (BUSY1) and bit 2
(STRB) of the automatic data transmit/receive control register (ADTC) to 0, 0.
2. Can be used freely as port function.
3. Can be used as P20 (CMOS input/output) when only transmitter is used (set bit 7 (RE) of ADTC
to 0).
Remark x
: Don't care
PMxx : Port mode register
Pxx
: Port output latch
426
CHAPTER 19 SERIAL INTERFACE CHANNEL 1
4
3
2
1
0
0
0
CSIM11 CSIM10
Note
Start Bit
MSB
LSB
Shift Register 1
P22
Operation
Note 1
Operation
x
x
x
x
stop
1
x
Operation
0
0
enable
0
1
0
Address
After Reset
FF68H
00H
SI1 Pin Function
SI1/P20
(Input)
Serial Clock Counter
SI1/P20 Pin
Operation Control
Function
Clear
P20 (CMOS
input/output)
Note 2
Count
SI1
(Input)
operation
R/W
R/W
SO1 Pin Function
SO1
(CMOS output)
SO1/P21 Pin
SCK1/P22
Function
Pin Function
P21 (CMOS
P22 (CMOS
input/output)
input/output)
SCK1
(Input)
SO1 (CMOS
output)
SCK1
(CMOS
output)

Advertisement

Table of Contents
loading

Table of Contents