Panasonic MN101C77C, F77G user manual Xiii 12 Operation

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 438
Image 438

Chapter 13 Serial Interface 4

 

Setup Procedure

Description

 

 

(5) Set the slave address.

(5) Set the slave address to the upper 7 bits of the

 

SC4AD0 (x'3FA3')

SC4AD0 register (I2CAD7-1).

 

bp7-1 : I2CAD7-1 = 0110011

 

(6)

IIC communication start

(6) Master on the IIC bus starts communication.

(7)

Data transmission/reception

(7) When the address transmitted from the master

 

confirmation

 

and the slave address set in the SC4AD1

 

SC4STR(x'3FAC')

register match, serial interface 4 interrupt

 

bp7

: WRS = 0

(SC4IRQ) is generated.

 

 

 

In the interrupt routine, make sure the

 

 

 

communication is the slave transfer by

 

 

 

verifying that the WRS flag of SC4STR

 

 

 

register is "0".

(8)

Transmission data setup

(8) Set the transmission data to the SC4TXB

 

SC4TXB (x'3FA5')

register.

 

bp7-0 : I2CTXB7-0 = x'55'

 

 

 

 

 

The transfer rate at IIC communication should be set to under 10 dividing of the system clock.

When master node on the IIC bus issues restart condition at slave transmission, as dummy data, the upper bit should be "1" for transmission data buffer.

XIII - 12 Operation

Page 438
Image 438
Panasonic MN101C77C, F77G user manual Xiii 12 Operation