Chapter 5 Serial Functions

Serial interface 0 begins operation when the SC0SBOS flag or the SC0SBIS flag is set to "1." Set the SC0SBOS flag or the SC0SBIS flag after all conditions have been set.

(7)If parity is enabled by the SC0NPE flag of the SC0MD2 register, set the SC0PM1~0 flags of the SC0MD2 register to specify the added parity bit.

(8)Set the SC0FM1 to 0 flags of the SC0MD2 register to specify the frame mode.

(9)Set the SC0BRKE flag of the SC0MD2 register to control break status transmission.

(10)Select the SC0SBOM flag of the SC0MD3 register.

(11)Select the SC0IOM flag of the SC0MD3 register.

(12)Set bit 0 of the port 0 direction control register (P0DIR) to the output mode.

(13)Select serial communication by setting the SC0SBOS flag of the SC0MD3 register to "1."

(14)Set transmit data to serial interface 0 transmit/receive shift register (SC0TRB). This will start the serial transmission.

(15)When the serial transmission begins, the SC0BSY flag of the SC0CTR register is set to "1," indicating that a serial transfer is in progress.

(16)When the serial transmission is complete, the SC0BSY flag of the SC0CTR register is cleared to "0" and the SC0 transfer complete interrupt request flag is set to "1." The SC0TRI flag of the SC0MD1 register is cleared to "0."

TXD

Parity enabled

Parity

Stop

Stop

 

bit

bit

bit

TXD

 

 

 

Parity disabled

Stop

Stop

 

bit

bit

 

Interrupt

Parity enabled

Interrupt

Parity disabled

SC0BSY

Parity enabled

SC0BSY

Parity disabled

Figure 5-3-1 UART Transmission Timing

102 Half-duplex UART Serial Interface

Page 116
Image 116
Panasonic MN101C00 user manual Uart Transmission Timing