- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page