Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

PA3040

Advanced Member level 3
Joined
Aug 1, 2011
Messages
883
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,936
let me know what is the advantage ninth bit load to TSR register
 

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
 

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
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top