Fujitsu F2MC-16LX Hardware Manual page 558

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

2
CHAPTER 22 I
C INTERFACE
Figure 22.3-5 Operation Flow of the Slave Program (with Interrupts) for the I
Main routine
Start
Set the slave
address
2
I
C operation enabled
Set slave mode
LOOP
542
Interrupt routine
Start
YES
Bus error
2
occurred?
No
No
Is addressing
1
completed?
Yes
No
Is the data direction
bit (TRX)=1?
Yes
No
Is ACK
1
returned?
Yes
Set the send data
Clear the transfer end
interrupt source
RETI
1
Clear the transfer end
Clear the bus error
interrupt source
2
RETI
I
C operation enabled
Is the
Yes
receive data an
address?
No
Store the data
in RAM
Clear the transfer end
interrupt source
RETI
2
C Interface
2
interrupt factor
2
I
C initial setting
RETI

Advertisement

Table of Contents
loading

Table of Contents