Programming Flow Charts - Fujitsu MB90390 Series Hardware Manual

Table of Contents

Advertisement

21.4

Programming Flow Charts

Each programming flow charts for the 400 kHz I
■ Programming Flow Charts
Figure 21.4-1 Example of Slave Addressing and Sending Data
Addressing a 7 bit slave
Clear BER bit (if set);
Enable Interface EN:=1;
IDAR := slave address<<1+RW;
Start
0
MSS := 1; INT :=
NO
INT=1?
YES
YES
BER=1?
NO
Restart
YES
transfer
AL=1?
Check
if AAS
NO
ACK?
NO
(LRB=0?)
Yes
Ready to send data
Slave did not ACK
Generate
repeated start
or stop condition
CHAPTER 21 400 kHz I
2
C interface is shown below.
Sending data
Start
Address slave for write
IDAR := Data Byte;
INT := 0
NO
INT=1?
YES
YES
BER=1?
Bus error
NO
Restart
YES
transfer
AL=1?
Check
if AAS
NO
ACK?
NO
(LRB=0?)
YES
Last byte
YES
transferred?
NO
Transfer End
Generate
repeated start or
stop condition
2
C INTERFACE
435

Advertisement

Table of Contents
loading

Table of Contents