# What is the advantage of the ninth bit load in TSR register?

Status
Not open for further replies.

#### PA3040

let me know what is the advantage ninth bit load to TSR register

#### prakashvenugopal

Re: USART with ninth bit

Hi,

1. The Ninth bit is the Parity bit which has Parity EVEN, ODD and None
2. It is used for detecting Error while communication

#### bigdogguru

Re: USART with ninth bit

The 9th bit feature is also utilized in address detection.

The 9th bit is used to signify the following 8-bits are a serial receiver address, when multiple receiving devices are attached to the same TX line.

Asynchronous communication of PIC16F873 (USART)

Microchip Section 18. USART

Section 18.5.1 USART Synchronous Master Transmission

In order to select 9-bit transmission, the TX9 bit (TXSTA<6>) should be set and the ninth bit
should be written to the TX9D bit (TXSTA<0>). The ninth bit must be written before writing the
8-bit data to the TXREG register. This is because a data write to the TXREG can result in an
immediate transfer of the data to the TSR register (if the TSR is empty). If the TSR was empty
and the TXREG was written before writing the “new” value to the TX9D bit, the “present” value of
of the TX9D bit is loaded.
BigDog

PA3040

### PA3040

points: 2

#### PA3040

Re: USART with ninth bit

Dear all
in Tx mode
can we configure portc 7bit (tx) and 6bit (rx) as input or output
I mean

Code:
movlw   0x00
movwf   trisc

or

movlw   0xff
movwf   trisc

Status
Not open for further replies.