368
CHAPTER 17 SERIAL INTERFACE CHANNEL 0 (
µ
PD78058FY SUBSERIES)
(3) Register setting
The I2C bus mode is set by the serial operating mode register 0 (CSIM0), serial bus interface control
register (SBIC), and interrupt timing specify register (SINT).
(a) Serial operating mode register 0 (CSIM0)
CSIM0 is set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets 00H.
R/W
CSIM01 CSIM00
Serial Interface Channel 0 Clock Selection
0×Input clock from off-chip to SCL pin
1 0 8-bit timer register 2 (TM2) outputNote 2
1 1 Clock specified with bits 0 to 3 of timer clock select register 3 (TCL3)
R/W
CSIM CSIM CSIM PM25 P25 PM26 P26 PM27 P27
Operation Start
SI0/SB0/SDA0/
SO0/SB1/SDA1/
SCK0/SCL/P27
04 03 02 Mode Bit
P25 Pin Function
P26 Pin Function
Pin Function
0 × 3-wire serial I/O mode (see section 17.4.2 3-wire serial I/O mode operation.)
1 1 0 × × 0 0 0 1 2-wire MSB P25 SB1/SDA1 SCK0/SCL
Note 3 Note 3 serial I/O or (CMOS I/O) N-ch open- N-ch open-
I2C bus mode drain I/O drain I/O
1 1 1 0 0 × × 0 1 2-wire MSB SB0/SDA0 P26 SCK0/SCL
Note 3Note 3 serial I/O or N-ch open- (CMOS I/O) N-ch open-
I2C bus mode drain I/O drain I/O
R/W WUP Wake-up Function ControlNote 4
0 Interrupt request signal generation with each serial transfer in any mode
1 In I2C bus mode, interrupt request signal is generated when the address data received after start condition
detection (when CMDD = 1) matches data in slave address (SVA) register.
R COI Slave Address Comparison Result FlagNote 5
0 Slave address register (SVA) not equal to data in serial I/O shift register 0 (SIO0)
1 Slave address register (SVA) equal to data in serial I/O shift register 0 (SIO0)
R/W CSIE0 Serial Interface Channel 0 Operation Control
0 Stops operation.
1 Enables operation.
Notes 1. Bit 6 (COI) is a read-only bit.
2. In the I2C bus mode, the clock frequency is 1/16 of the clock frequency output by TO2.
3. Can be used freely as a port.
4. To use the wake-up function (WUP = 1), set the bit 5 (SIC) of the interrupt timing specify register (SINT)
to 1. Do not execute an instruction that writes the serial I/O shift register 0 (SIO0) while WUP = 1.
5. When CSIE0 = 0, COI is 0.
Remark ×: don’t care
PMXX : Port Mode Register
PXX : Port Output Latch
65432107
Symbol
CSIM0 FF60H 00H R/W
Note 1
Address After Reset R/W
CSIE0 COI WUP
CSIM04 CSIM03 CSIM02 CSIM01 CSIM00