EmbDev.net

Forum: FPGA, VHDL & Verilog Nexy's 3 Dada reception help


Author: (unknown) (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi all,
I am now using the uart prot on Nexy's 3 board to receive 8 bit data in 
9600 baud rate from PC. My design will simply respond "#" when upper 
case vowel is typed in hyperterminal and respond "N" when others are 
typed. However, the result will only echo N whatever I typed. I assumed 
that it was the endian problem on receiver side. May I know that If the 
PC send 01010101 to the board, will the Nexy's 3 board automatically 
change it to 10101010 or remains the same? Anyway, I have tried both way 
but the result only echo N but not #. I have also check the clock 
frequency. It is 100MHz on board and 9600 baud from PC. Therefore I made 
a counter to count every 100M/9600 = 10416 clk cycle to read one bit. 
Could any one help me to get out this situation? Thanks.
Tom

Author: P. K. (pek)
Posted on:

Rate this post
0 useful
not useful
Tom Sun wrote:
> My design will simply respond "#" when upper case vowel is
> typed in hyperterminal and respond "N" when others are typed.

Why not just echo what you typed? This would make debugging much easier, 
as you possibly could see regularity in characters being altered...

Author: Anja (Guest)
Posted on:

Rate this post
0 useful
not useful
> but the result only echo N but not #
so the baud rate and the timing of the sending routine seems to be 
correct.

> Therefore I made
> a counter to count every 100M/9600 = 10416 clk cycle to read one bit.

Usually you would want to read all bits in the middle of the bit.
So you should read the start bit 5208 clk cycles after the falling edge.

best regards

Anja

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
@Tom Sun
Pls attach your code file(s). The problem may be buried there...

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.