Panasonic MN101C77C, F77G user manual XI 40 Operation

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 366
Image 366

Chapter 11 Serial Interface 0, 1

 

Setup Procedure

 

Description

 

 

 

(6) Select the transfer bit count.

(6)

Set the SC0LNG2-0 flag of the serial 0 mode

 

SC0MD0(x'3F92')

 

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

 

 

 

bit count "8 bits".

(7) Select the start condition.

(7)

Set the SC0STE flag of the SC0MD0 register to

 

SC0MD0 (x'3F92')

 

"0" to disable start condition.

 

bp3 : SC0STE = 0

 

 

(8) Select the first bit to be transfered.

(8)

Set the SC0DIR flag of the SC0MD0 register to

 

SC0MD0 (x'3F92')

 

"0" to set MSB as a transfer first bit.

 

bp4 : SC0DIR = 0

 

 

(9) Select the transfer edge.

(9)

Set the SC0CE1 flag of the SC0MD0 register to

 

SC0MD0 (x'3F92')

 

"1" to set the transmission data output edge

 

bp7 : SC0CE1 = 1

 

"rising" and the received data input edge "falling".

(10) Control the output data.

(10)

Set the SC0BRKE flag of the SC0MD2 register to

 

SC0MD2 (x'3F94')

 

"0" to select "serial data transmission".

 

bp0 : SC0BRKE = 0

 

 

(11) Set other mode registers.

(11)

No need at synchronous serial communication.

 

SC0MD2 (x'3F94')

 

 

 

bp7-3

 

 

(12)

Select the communication type.

(12)

Set the SC0CMD flag of the SC0MD1 register to

 

SC0MD1 (x'3F93')

 

"0" to select "synchronous serial".

 

bp0 : SC0CMD = 0

 

 

(13)

Select the transfer clock.

(13)

Set the SC0MST flag of the SC0MD1 register to

 

SC0MD1 (x'3F93')

 

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

 

bp2 : SC0MST = 1

 

Set the SC0CKM flag to "1" to select "divide by 8"

 

bp3 : SC0CKM = 1

 

for source clock.

(14) Control the pin function.

(14)

Set the SC0SBOS, SC0SBIS, SC0SBTS flag of

 

SC0MD1 (x'3F93')

 

the SC0MD1 register to "1" to set SBO0A pin

 

bp4 : SC0SBOS = 1

 

"serial data output", SBI0A pin "serial data input",

 

bp5 : SC0SBIS = 1

 

and SBT0A pin "serial clock I/O".

 

bp6 : SC0SBTS = 1

 

Set the SC0IOM flag "0" to set serial data input

 

bp7 : SC0IOM = 0

 

from SBI0A pin.

 

 

 

 

XI - 40 Operation

Page 366
Image 366
Panasonic MN101C77C, F77G user manual XI 40 Operation