devchandil Posted June 13, 2016 Share Posted June 13, 2016 I am trying to send an 8 bit data by UART to my terminal, the baudrate I have selected is 9600 and my clock frequency is 100Mhz. The output I am getting on my screen is all garbage. Any help would be very valuable com.vhd uart_tx.bit uart_tx.ucf uart_tx.vhd uart_tx.xise Link to comment Share on other sites More sharing options...
hamster Posted June 13, 2016 Share Posted June 13, 2016 Hi, I think I see your problem.... do you ever set INDEX back to zero? It might be easier initially to send additional 1 bits after the data to simplify things.... e.g. 0,a,b,c,d,e,f,g,h,1 and then 22 '1's (where the letters are your data bitsfrom the switches), and just repeat that over and over. Just have INDEX counting from 0 to 31, You can then enhance that only send when the key is pushed (e.g not rolling from 31 back to 0 unless KEY='1', and then speed it up by sending fewer extra bits, until you are running at full speed. Link to comment Share on other sites More sharing options...
hamster Posted June 13, 2016 Share Posted June 13, 2016 On second glance you are setting INDEX back to zero, just not where I expected in the "IF (TX_FLG='0' AND START = '1') THEN" block. Link to comment Share on other sites More sharing options...
Question
devchandil
I am trying to send an 8 bit data by UART to my terminal, the baudrate I have selected is 9600 and my clock frequency is 100Mhz. The output I am getting on my screen is all garbage. Any help would be very valuable
com.vhd
uart_tx.bit
uart_tx.ucf
uart_tx.vhd
uart_tx.xise
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.