L 2 C Interface - Fujitsu F2MC-8FX Hardware Manual

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

2
CHAPTER 22 I
C
2
22.7.1
l
C Interface
2
The I
C interface is an eight-bit serial interface synchronized with the shift clock. It
2
conforms to the I
2
I
C System
2
The I
C bus system uses the serial data line (SDA0) and serial clock line (SCL0) for data transfers. All the
devices connected to the bus require open drain or open collector outputs which must be connected with a
pull-up resistor.
Each of the devices connected to the bus has a unique address which can be set up using software. The
devices always operate in a simple master/slave relationship, where the master functions as the master
transmitter or master receiver. The I
function and arbitration function to prevent data from being lost if more than one master attempts to start
data transfer at the same time.
2
I
C Protocol
Figure 22.7-1 shows the format required for data transfer.
SDA0
SCL0
Start
condition (S)
The slave address is transmitted after a start condition (S) is generated. This address is seven bits followed
by the data direction bit (R/W) in the eighth bit position. Data is transmitted after the address. The data is
eight bits followed by an acknowledgment.
Data can be transmitted continuously to the same slave address in consecutive units of eight bits plus
acknowledgment.
Data transfer is always ended in the master stop condition (P). However, the repeated start condition (Sr)
can be used to transmit the address which indicates a different slave without generating a stop condition.
396
C bus specification defined by Philips.
Figure 22.7-1 Data Transfer Example
MSB
7-bit address
Acknowledge bit
2
C interface is a true multi-master bus with a collision detection
LSB
MSB
8-bit data
R/W
LSB
Stop
condition (P)
No acknowledge

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents