Well, the scope shows the bits are being clocked out, I'll bet my bit-delay routines are not quite right! I'll compare to a known-good 4800 baud soutrce as you advise > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Alan B. Pearce > Sent: 19 December 2003 09:36 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:] Microchip C18 Software UART (again!) > > > >Could anyone put me out of my misery, and spot my error? > > > >Thanks, Peter Moreton > > > >(BTW, processor is PIC18F452 clocked at 4Mhz with PLL > >enabled giving FOSC=16Mhz, baudrate is 4800) > > Are you sure it transmits at 4800? get a scope out and look > at the waveform, > and find the actual timing. Send some characters from the > terminal at 4800 > and see if the bit width is the same. It sounds like the code > is working > correctly, just the baud rate is screwed up. > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics