Serial Interface; Serial Interface Mode Register - NEC PD17062 Datasheet

Mos integrated circuit 4-bit single-chip microcontroller containing pll frequency synthesizer and image display controller
Table of Contents

Advertisement

16. SERIAL INTERFACE

The PD17062 has two sets of serial interface pins, channel 0 (CH0) and channel 1 (CH1), for exchanging
data with an external unit.
The CH0 pin, which consists of two wires, SDA and SCL, can be operated in any of three modes, clock
synchronous two-wire serial input, clock synchronous two-wire serial output, and two-wire bus
and SCL pins can be used as general-purpose ports when not being used as a serial interface.
The CH1 pin, which consists of three wires, SCK, SO, and SI, can be operated in any of three modes, clock
synchronous two-wire serial I/O input, clock synchronous two-wire serial I/O output, and three-wire serial I/
O.
CH0 and CH1 cannot be operated at the same time. Which of pins CH0 and CH1 is used is specified with
the SIO0CH flag (register file: 08H, b
The two-wire hardware-supported bus mode is for the single master. Therefore, this mode does not support
any arbitration function. Arbitration must be done by the software.
Note The two-wire bus mode can be used as an I
CH
Pin name
0
P0A
/SDA
0
P0A
/SCL
1
1
P0A
/SCK
2
P0A
/SO
3
P0B
/SI
0

16.1 SERIAL INTERFACE MODE REGISTER

The serial interface mode register specifies the operation mode of the serial interface. This register sets
up the channel to be used, the protocol, clock, and transmission/reception.
This register is mapped to address 08H in the register file.
All flags of this register are set to 0 at power-on reset.
Fig. 16-1 Configuration of Serial Interface Mode Register
) of SMODE (Serial Interface Mode Register).
3
Table 16-1 External Pins for Serial Interface
Two-wire bus mode
Serial data I/O
Shift clock I/O
Cannot be used
Bit position
b
3
Flag name
SIO0CH
2
C bus.
Function
Serial I/O mode
Port I/O setting register
Serial data I/O
Shift clock I/O
Shift clock I/O
Serial data output
Serial data input
b
b
b
2
1
0
SB
SIO0MS
SIO0TX
PD17062
Note
. The SDA
P0ABIO0
P0ABIO1
P0ABIO2
P0ABIO3
P0BBIO0
201

Advertisement

Table of Contents
loading

Table of Contents