Chapter 12 Serial Interface 3

Setup Procedure

 

 

Description

 

 

 

(6) Select the transfer bit count.

(6)

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 8 bits.

(7) Select the start condition.

(7)

Set the SC3STE flag of the SC3MD0 register to

SC3MD0 (x'3FA8')

 

"1" to enable start condition.

bp3 : SC3STE = 1

 

 

 

(8) Select the first transfer bit.

(8)

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

 

 

 

(9) Select the transfer edge.

(9)

Set the SC3CE1 flag of the SC3MD0 register to

SC3MD0 (x'3FA8')

 

"1" to set the transmission data output edge to

bp6 : SC3CE1 = 1

 

"rising", and the received data input edge to

 

 

"falling".

 

(10) Select the transfer clock.

(10)

Set the SC3MST flag of the SC3MD1 register to

SC3MD1 (x'3FA9')

 

"1" to select clock master (internal clock).

bp2 : SC3MST = 1

 

 

 

(11) Control the pin function.

(11)

Set the SC3SBOS, SC3SBIS, SC3SBTS flags of

SC3MD1 (x'3FA9')

 

the SC3MD1 register to "1" to set the SBO3 pin to

bp4 : SC3SBOS = 1

 

serial data output, the SBI3 pin to serial data

bp5 : SC3SBIS = 1

 

input, and the SBT3 pin to serial clock I/O. Set the

bp6 : SC3SBTS = 1

 

SC3IOM flag to "0" to set "serial data input from

bp7 : SC3IOM = 0

 

the SBI3 pin".

(12) Set the other mode register.

(12)

At IIC communication, that flag should be set. At

SC3CTR (x'3FAA')

 

synchronous serial communication, no need to be

bp7-6, 3, 1-0

 

set.

 

(13) Set the interrupt level.

(13)

Set the interrupt level by the SCLV1-0 flag of the

SC3ICR (x'3FF9')

 

serial 3 interrupt control register (SC3ICR).

bp7-6 : SC3LV1-0 = 10

 

 

 

(14) Enable the interrupt.

(14)

Enable the interrupt to the SC3IE flag of the

SC3ICR (x'3FF9')

 

SC3ICR register. If the interrupt request flag

bp1 : SC3IE = 1

 

(SC3IR of the SC3ICR register) is already set,

 

 

clear SC3IR before the interrupt is enabled.

 

 

[

Chapter 3 3-1-4. Interrupt Flag Setup ]

 

 

 

 

Operation XII - 25

Page 411
Image 411
Panasonic F77G, MN101C77C user manual Interrupt Flag Setup