Panasonic F77G, MN101C77C user manual Serial Interface 0

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 385
Image 385

Chapter 11 Serial Interface 0, 1

Setup Procedure

 

Description

 

 

 

(6) Select the start condition.

(6)

Set the SC0STE flag of the SC0MD0 register

SC0MD0(x'3F92')

 

to "1" to enable start condition.

bp3 : SC0STE = 1

 

 

(7) Select the first bit to be transfered.

(7)

Set the SC0DIR flag of the SC0MD0 register

SC0MD0(x'3F92')

 

to "0" to select MSB as first transfer bit.

bp4 : SC0DIR = 0

 

 

(8) Control the output data.

(8)

Set the SC0BRKE flag of the SC0MD2 regis-

SC0MD2 (x'3F94')

 

ter to "0" to select serial data transmission.

bp0 : SC0BRKE = 0

 

 

(9) Select the added parity bit.

(9)

Set the SC0PM1-0 flag of the SC0MD2

SC0MD2 (x'3F94')

 

register to "00" to select 0 parity, and set the

bp3 : SC0NPE = 0

 

SC0NPE flag to "0" to add parity bit.

bp5-4 : SC0PM1-0 = 00

 

 

(10) Specify the frame mode.

(10)

Set the SC0FM1-0 flag of the SC0MD2

SC0MD2 (x'3F94')

 

register to "11" to select 8 bits + 2 stop bits at

bp7-6 : SC0FM1-0 = 11

 

the frame mode.

(11) Set the SC0MD1 register.

(11)

Set the SC0CMD flag of the SC0MD1 register

Select the communication type.

 

to "1" to select duplex UART.

SC0MD1 (x'3F93')

 

 

bp0 : SC0CMD = 1

 

 

 

(12)

Set the SC0CKM flag of the SC0MD1 register

(12) Select the clock frequency.

 

to "1" to select "divided by 8" at source clock.

SC0MD1 (x'3F93')

 

And, the SC0MST flag should be always set to

bp3 : SC0CKM = 1

 

"1" to select colck master.

bp2 : SC0MST = 1

 

 

 

(13)

Set the SC0SBOS, SC0SBIS flag of the

(13) Control the pin function.

 

SC0MD1 register to "1" to set the TXD0A pin

SC0MD1 (x'3F93')

 

to serial data output and the RXD0A pin to

bp4 : SC0SBOS = 1

 

serial data input.

bp5 : SC0SBIS = 1

 

 

bp7 : SC0IOM = 0

 

 

 

 

 

Operation XI - 59

Page 385
Image 385
Panasonic F77G, MN101C77C user manual Serial Interface 0