beautypg.com

4 2-wire serial i/o mode operation – NEC PD78058FY(A) User Manual

Page 331

background image

331

CHAPTER 16 SERIAL INTERFACE CHANNEL 0 (

µ

PD78058F SUBSERIES)

16.4.4 2-wire serial I/O mode operation

The 2-wire serial I/O mode can cope with any communication format by program.

Communication is basically carried out with two lines of serial clock (SCK0) and serial data input/output (SB0 or

SB1).

Figure 16-31. Serial Bus Configuration Example Using 2-Wire Serial I/O Mode

(1) Register setting

The 2-wire serial I/O mode is set with 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 with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSIM0 to 00H.

Master

SCK0

Slave

SB0 (SB1)

SCK0

SB0 (SB1)

AV

DD

AV

DD

This manual is related to the following products: