Neil, Here is a routine I wrote awhile back that generates even parity. ; Subroutine - Generate even parity for contents of W register. Parity bit is returned ; in bit 0 of parity register. ; even_parity mov parity,w ;This routine will leave the parity of mov w,<>parity ; PARITY register in PARITY.0 xor parity,w mov w,>>parity xor parity,w snb parity.2 inc parity retp In the send_byte subroutine, you'll need to insert the following line to properly setup the parity bit. movb tx_high.7,parity.0 ;Load parity bit into frame I never got around to writing the receive code, but these routines could be used there too. Stephen -----Original Message----- From: Neil Gandler [mailto:neil_gandler@GETMAI.COM] Sent: Wednesday, January 10, 2001 4:58 PM To: PICLIST@MITVMA.MIT.EDU Subject: [SX]: Looking for modified UART virtual peripheral (parity bit/parity decode, framing error detect) I am using an SX28 microcontroller, including the UART virtual peripheral. If someone has modified the VP to detect and decode a 9th parity bit and framing error, I would appreciate the forwarded source code. I am sure its easy to do, yet if someone has proven source code, it would save me time. Thanks -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu