Re: USART problem on m88
Erik Christiansen <[email protected]> Tue, 17 Jan 2017 20:46:17 +1100
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <20170117094617.GA7184@ratatosk> |
On 16.01.17 19:28, georg chambert wrote: > > However the data coming out on the UART is random characters, though > with the same count (I think) as the number of characters sent. > > Any clues would be good. Based on available info, it's only possible to guess. In my experience, random characters have usually been due to a baudrate mismatch between sender and receiver. If you have an oscilloscope, then looking at a bunch of 0x55 or 0xAA characters on TXD will check that. If not, then an m88 timer could measure the interval between successive tx-buffer-empty interrupts, perhaps. First, however, triple checking the baudrate prescaler config at both ends, preferably after a good night's sleep - and a strong coffee, could be beneficial. The thing with such small porting edits is that they are as unforgiving as they are trivial in scope. (Remember; the silicon works. ;-) Silly question - there isn't a forgotten data stream inversion in the serial link, is there? Erik