Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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
879
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,907
let me know what is the advantage ninth bit load to TSR register
 

prakashvenugopal

Advanced Member level 1
Joined
Jun 1, 2011
Messages
400
Helped
15
Reputation
30
Reaction score
15
Trophy points
1,298
Activity points
4,448
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

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,274
Trophy points
1,413
Location
Southwest, USA
Activity points
62,508
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.

PIC UART Address Detection

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

PA3040

Advanced Member level 3
Joined
Aug 1, 2011
Messages
879
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,907
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

Top