Forum Discussion
Altera_Forum
Honored Contributor
10 years agoUART Reciever not responding after reset
Hello !!!
I have written code for UART receiver for the baud rate of 9600bps. The problem I am facing is that, once i program my device, for the first time everything works fine but after reset it is not working. Could not able to find out the bug in the code. I'll be very thankful if anyone helps me to overcome this problem. "if( data_check == 8'h00) begin send_data <= received_data[8:1]; send_wire <= 1'b1; send_alaram <= 4'b1111; state <= wait_H1S1; end" This part of code only executes once. I have attached the code to this thread.1 Reply
- Altera_Forum
Honored Contributor
That chunk of code is entirely dependent on what 'uart_rx' receives. If it's not executing, that's because you're not driving it with '0x00' (8'h00) - a null character. Anything but a null character, as the first (an only) received character, will cause your state machine to stall in the 'H1S1' state.
Cheers, Alex