Re: [Flashforth-devel] Trouble getting serial comms to work
Brought to you by:
oh2aun
From: Richard B. <ric...@gm...> - 2018-09-17 13:41:28
|
Hi Craig, thanks for your prompt response. I changed the baud to 9600 and can confirm via Pulseview that the baud rate has indeed changed to 9600. However, after the initial gibberish I now get a repeating pattern in hex in the Pulseview UART decoder of D3 BE A0 FD 84 94 00. After a bit of navel gazing becomes it dawns on me that the TTL logic of the board is idle low, so I invert the sense in Pulseview and then try decoding as least significant bit first and viola: the repeating pattern could be: <space>SP?<space>ok Which looks like a problem unrelated to serial comms now! Looks like it's time to start another thread. Thanks again for your help. Kind regards Richard On 9/17/18, craig bair via Flashforth-devel <fla...@li...> wrote: > Hi yourself Richard, > > Running the calculation Microchip gives us: > ((12288000 / 38400) / 64) - 1 = 4 > looks tight on the SPBRG, but the error is nill so the crystal should get > it close enough. > > I occasionally have to reset my terminal program (TerraTerm) when it gets > bloody-minded and acts like that. > > Old School Debugging would say try turning the starting comm-rate down to > 9600 baud and see if it talks. > > It's been a while since I've had to do massive tweaking with my 18F46K22-s > because Mikael's done a good job with the sources. > > Good Luck! > craig bair > > > > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > |