On Mon, Jul 27, 2009 at 8:04 PM, Matt Rhys-Roberts wrote: > I have a curious problem when I'm transmitting ASCII character '5' via > RS232 to USART1. > > It seems to be *alternately* receiving 0xB5 instead of 0x35, i.e. the > MSB is erroneously set, about 50% of the time, and only seems to be > failing on this character! (NB: WUE (wake-up enable bit) is disabled, > which I know gives receive errors when enabled). > > I've set USART1 up for asynchronous reception, 9600 baud, 8N1. I > transmit from Hyperterminal into a USB-RS232 converter ("Prolific > USB-to-Serial Comm Port"). > > Throw a loopback plug at the converter, see if it generates/receives the error by itself. I've also had an ICL232 converter IC with a loading fault, that caused errors when it could not sustain the charge on it's caps, giving extra pulses in the data stream. regards AB -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist