Peter Moreton wrote : > hi, I'm working on a project that needs RS232 data with even parity - > and having read the USART doc's, I couldn't see a way to get the USART > hardware to generate the parity data, so I am presuming that > the correct > approach is to take each 7 bit ASCII character that I need to send, > calculate what the 8th (parity) bit should be, and adjust the > character I load into the USART accordingly. > > Is this right, or am I missing something obvious? Just checked one data sheet (PIC16F62X, DS40300B, page 78) where it says "Parity is not supported by the hardware, but can be implemented is software...) Pretty clear, isn't it :-) Jan-Erik. PS. Note that the parity bit could be sent as the 9'th bit (using the TX9D bit in the TXSTA reg... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu