Panasonic F77G, MN101C77C user manual Serial Interface

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 423
Image 423

Chapter 12 Serial Interface 3

 

Setup Procedure

 

Description

 

 

 

 

(5)

Set ACK bit.

(5)

Set the SC3ACKS flag of the serial 3 control

 

SC3CTR (x'3FAA')

 

register (SC3CTR) to "1" to select "receive ACK

 

bp0 : SC3ACKO = x

 

bit". At transmission, ACK bit is received, so that

 

bp1 : SC3ACKS = 1

 

the SC3ACKS flag does not need to set the ACK

 

 

 

bit level.

(6) Select the communication type.

(6)

Set the SC3CMD flag of the serial 3 control

 

SC3CTR (x'3FAA')

 

register (SC3CTR) to "1" to select IIC.

 

bp2 : SC3CMD = 1

 

 

<Transmission setup>

 

 

(7)

Select the transmission/reception

(7)

Set the SC3REX flag of the serial 3 control

 

mode.

 

register (SC3CTR) to "0" to select the

 

SC3CTR (x'3FAA')

 

transmission mode.

 

bp3 : SC3REX = 0

 

 

(8) Initialize the monitor flag.

(8) Set the SC3STC flag and the IICBSY flag of the

 

SC3CTR (x'3FAA')

 

serial 3 control register (SC3CTR) to "0, 0" to

 

bp6 : SC3STC = 0

 

initialize the start condition detection flag and the

 

bp7 : IICBSY = 0

 

BUSY flag.

(9) Set the SC3MD0 register.

(9)

 

 

Select the transfer bit count.

 

Set the SC3LNG2-0 flag of the serial 3 mode

 

SC3MD0 (x'3FA8')

 

register (SC3MD0) to "111" to set the transfer

 

bp2-0 : SC3LNG2-0 = 111

 

bit count to 9 bits.

(10) Select the start condition.

(10)

Set the SC3STE flag of the SC3MD0 register to

 

SC3MD0 (x'3FA8')

 

"1" to enable start condition.

 

bp3 : SC3STE = 1

 

 

(11) Select the first bit to be transferred.

(11)

Set the SC3DIR flag of the SC3MD0 register to "0"

 

SC3MD0 (x'3FA8')

 

to set MSB as the first bit to be transferred.

 

bp4 : SC3DIR = 0

 

 

(12) Select the IIC communication edge.

(12)

At IIC communication, set the SC3CE1 flag of the

 

SC3MD0 (x'3FA8')

 

SC3MD0 register to "1", always.

 

bp6 : SC3CE1 = 1

 

 

 

 

 

 

Operation XII - 37

Page 423
Image 423
Panasonic F77G, MN101C77C user manual Serial Interface