Forum Discussion
Altera_Forum
Honored Contributor
11 years agoRS232 rxd code
Hi :) i'm new here and i need some help... i work on project and i need to read from kind of machine some letters... there is an ascii code to all letter. this machine send words that i ne...
Altera_Forum
Honored Contributor
11 years agoThe bit takes time to send. So you need to check your bit in the middle of that duration so you know for sure what bit you read. On the edges gives inacurate readings. Also, you need to pass your signal trough a synchronizer to prevent metastability.
Back to read in the middle: Once you detected the start bit (first falling edge after stopbit) you wait half the bittime and than start reading.