Fujitsu 8FX Hardware Manual page 532

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

2
CHAPTER 24 I
C BUS INTERFACE
24.6 Operations and Setting Procedure Example
The following sample flow chart illustrates the procedure:
Set the MSS bit in I
● Example of generating an interrupt (IBCR1n:INT = 1) with "IBCR0n:ALF = 1" detected
If a START condition is generated by the program (by setting the IBCR1n:MSS bit to "1")
with the bus busy (IBSRn:BB = 1) and arbitration lost detected, a IBCR1n:INT bit interrupt
occurs upon detection of "IBCR0n:ALF = 1".
Figure 24.6-6 Timing Diagram with Interrupt Generated with "IBCR0n:ALF = 1" Detected
SCLn pin
SDAn pin
ICCRn:EN
IBCR1n:MSS
IBCR0n:ALF
IBSRn:BB
IBCR1n:INT
510
Figure 24.6-5 Sample Flow Chart 1
Enable AL interrupts (IBCR0n:ALE =1).
Set master mode.
2
C bus control register 1 ch. n (IBCR1n) to "1".
IBCR0n:ALF = 1
YES
IBSRn:BB = 0
YES
Write "0" to IBCR0n:ALF to
clear AL flag and interrupt.
START condition
Slave address
FUJITSU SEMICONDUCTOR LIMITED
NO
NO
Write "0" to IBCR0n:ALE to
clear AL interrupt.
Interrupt in 9th clock cycle
ACK
Clear IBCR0n:ALF by software.
Clear IBCR1n:INT by software
and release SCLn line.
MB95630H Series
Normal control
Data
MN702-00009-2v0-E

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents