PDA

View Full Version : Using 9th bit in RS422



prylbogen
- 20th April 2005, 10:29
Does anyone know if Picbasic Pro allows the developer to control the 9th bit in serial communication (RS422/RS485)? I know it can be used for parity, but i need to use it as an address bit in a master/multiple slaves scenario.

Dave
- 20th April 2005, 11:55
prylbogen, The 9th bit can be set for a particular transmission in the TXSTA register by first enabling the TXSTA.6 bit and then setting the state of the bit in TXSTA.0. For the receive side enable 9 bit reception by enabling RXSTA.6 and look at RXSTA.0 for ste received state of the 9th bit.

Dave Purola,
N8NTA