Pin Configuration - NEC PD78056F User Manual

Pd78058f series; pd78058fy series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 17 SERIAL INTERFACE CHANNEL 0 ( PD78058FY SUBSERIES)
(5) Pin configurations
The configurations of the serial clock pin SCL and the serial data bus pins SDA0 (SDA1) are shown below.
(a) SCL
Pin for serial clock input/output dual-function pin.
<1> Master ..... N-ch open-drain output
<2> Slave ....... Schmitt input
(b) SDA0 (SDA1)
Serial data input/output dual-function pin.
Uses N-ch open-drain output and Schmitt-input buffers for both master and slave devices.
Note that pull-up resistors are required to connect to both serial clock line and serial data bus line,
because open-drain buffers are used for the serial clock pin (SCL) and the serial data bus pin (SDA0 or
2
SDA1) on the I
C bus.
Master Device
Clock Output
AV
SS
(Clock Input)
Data Output
AV
SS
Data Input
Caution
It is necessary for the N-ch open-drain output to be set in the high impedance state when
receiving data, so set 1 in bit 7 (BSYE) of the serial bus interface control register (SBIC)
in advance and write FFH in serial I/O shift register 0 (SIO0).
However, when the wake up function is used (when bit 5 (WUP) of serial operation mode
register 0 (CSIM0) is set), do not write FFH in SIO0 before reception. Even if FFH is not
written in SIO0, the N-ch open-drain output is always in the high impedance state.
(6) Address match detection method
2
In the I
C mode, the master can select a specific slave device by sending slave address data.
CSIIF0 is set if the slave address transmitted by the master coincides with the value set to the slave
address register (SVA) when a slave device address has a slave register (SVA), and the wake-up function
specify bit (WUP) = 1 (CSIIF0 is also set when the stop condition is detected).
When using the wake-up function, set SIC to 1.
Caution
Be sure to set the WUP bit to 1 before the master device sends slave address data to slave
devices. Each slave device recognizes whether the slave device is selected or not by
master device by comparing the content of the SVA register (which is in each slave device)
and the slave address data, which is sent by master device immediately after the start
condition signal. Only if the WUP bit has been set to 1 when they match, the slave device
generates INTCSI0 signal.
372
Figure 17-21. Pin Configuration
AV
DD
SCL
AV
DD
SDA0(SDA1)
SDA0(SDA1)
Slave Devices
SCL
(Clock Output)
AV
SS
Clock Input
Data Output
AV
SS
Data Input

Advertisement

Table of Contents
loading

Table of Contents