UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 491

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1) Master operation in single-master system
Note Release (SCL0 and SDA0 pins = high level) the I
Remark
product that is communicating. If EEPROM is outputting a low level to the SDA0 pin, for example, set the
SCL0 pin in the output port mode, and output a clock pulse from the output port until the SDA0 pin is
constantly at high level.
Conform to the specifications of the product that is communicating, with respect to the transmission and
reception formats.
No
No
Figure 14-23. Master Operation in Single-Master System
ACKE0 = WTIM0 = SPIE0 = 1
Setting STCEN, IICRSV = 0
Initializing I
interrupt occurs?
Interrupt occurs?
interrupt occurs?
End of transfer?
IICCL0
SVA0
IICC0
IICX0
IICF0
STCEN = 1?
ACKD0 = 1?
ACKD0 = 1?
Writing IIC0
Writing IIC0
Setting port
TRC0 = 1?
IICE0 = 1
STT0 = 1
SPT0 = 1
INTIIC0
INTIIC0
INTIIC0
Restart?
START
No
Yes
2
Yes
Yes
Yes
Yes
Yes
Yes
Yes
C bus
XXH
0XH
XXH
0XH
XXH
CHAPTER 14 SERIAL INTERFACE IIC0
Preliminary User’s Manual U19748EJ1V0UD
Note
Waits for detection of the stop condition.
Yes
No
No
No
No
No
No
Prepares for starting communication
(generates a stop condition).
Starts transmission.
Waits for data transmission.
Prepares for starting communication
(generates a start condition).
Starts communication
(specifies an address and transfer
direction).
Waits for detection of acknowledge.
Selects a transfer clock.
Sets a local address.
Sets a start condition.
Sets each pin in the I
SPT0 = 1
END
2
C mode (see 14.3 (7) Port mode register 6 (PM6)).
2
C bus in conformance with the specifications of the
WTIM0 = WREL0 = 1
interrupt occurs?
End of transfer?
interrupt occurs?
Reading IIC0
WREL0 = 1
ACKE0 = 0
ACKE0 = 1
WTIM0 = 0
INTIIC0
INTIIC0
Yes
Yes
Yes
No
No
No
Waits for data
reception.
Waits for detection
of acknowledge.
Starts reception.
489

Related parts for UPD78F0838