Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12744 ディスカッション

Bug in serial port com

Altera_Forum
名誉コントリビューター II
1,056件の閲覧回数

When transferring (using Hyperterminal) 2 identical characters, the second character may get its MSB flipped. For example, sending "FF" may be received as "0x46 0xC6". 

Has anybody seen this and know of a solution? 

I'm using Stratix ver of NIOS board. 

 

 

Thanks.
0 件の賞賛
2 返答(返信)
Altera_Forum
名誉コントリビューター II
374件の閲覧回数

There is a problem with your design.. I often working with standard UART and Fifoed_UART and there is no such problem for me more than 4 years..

Altera_Forum
名誉コントリビューター II
374件の閲覧回数

It might be that you baud rate is slightly out, and that the wrong bit gets sampled - in theory this should generate a receive framing error, but those aren't always reported to apps. 

The byte will be sent LSB first, so you should be able to work out what is being mis-sampled. Remember the async byte pattern is 10 bits long (a zero before the byte and a one after it).
返信