Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHelp with Basic Concept Please
Hello folks, Having lots of trouble understanding a simple concept. I would like to know how the data register works for this UART. From the Data sheet, this is what info i have: device RS...
Altera_Forum
Honored Contributor
11 years agoAssuming your baud rate, etc settings match between the PC and FPGA board, you need to check the data valid bit. You only have input data when that bit is set. If it isn't set, come back later and check again. If the data valid bit is set the number of characters field will tell you how many bytes you can read before waiting for data valid again. The code you have doesn't do this.