Panasonic F77G, MN101C77C Uart Serial Interface Frame Mode, Parity Bit of Uart Serial Interface

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 371
Image 371

Chapter 11 Serial Interface 0, 1

The SCnFM1 to 0 flag of the SCnMD2 register sets the frame mode. Table 11-3-19 is shown the UART Serial Interface Frame Mode setting. If the SCnCMD flag of the SCnMD1 register is set to "1", and UART communication is selected, the transfer bit count on the SCnLNG2 to 0 flag of the SCnMD0 register is no more valid.

Table 11-3-19 UART Serial Interface Frame Mode

SCnMD2 register

Frame mode

SCnFM1

SCnFM0

 

0

0

Character bit 7 bits + Stop bit 1 bit

0

1

Character bit 7 bits + Stop bit 2 bits

1

0

Character bit 8 bits + Stop bit 1 bit

1

1

Character bit 8 bits + Stop bit 2 bits

Parity bit is to detect wrong bits with transmission / reception data.

Table 11-3-20 shows kinds of parity bit. The SCnNPE, SCnPM1 to 0 flag of the SCnMD2 register set parity bit.

Table 11-3-20 Parity Bit of UART Serial Interface

 

SCnMD2 register

 

Parity bit

Setup

 

 

 

 

 

SCnNPE

 

SCnPM1

 

SCnPM0

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

0

fixed to 0

Set parity bit to "0".

 

 

 

 

 

 

 

0

 

0

 

1

fixed to 1

Set parity bit to "1".

 

 

 

 

 

 

 

0

 

1

 

0

odd parity

Control that the total of "1" of parity bit and character

 

 

bit should be odd.

 

 

 

 

 

 

0

 

1

 

1

even parity

Control that the total of "1" of parity bit and character

 

 

bit should be even.

 

 

 

 

 

 

1

 

-

 

-

none

Do not add parity bit.

 

 

 

 

 

 

 

„Break Status Transmission Control Setup

The SCnBRKE flag of the SCnMD2 register generates the break status. If SCnBRKE is set to "1" to select the break transmission, all bits from start bits to stop bits transfer "0".

Operation XI - 45

Page 371
Image 371
Panasonic F77G, MN101C77C user manual Uart Serial Interface Frame Mode, Parity Bit of Uart Serial Interface