Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17256 Discussions

UART Reciever not responding after reset

Altera_Forum
Honored Contributor II
1,169 Views

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.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
477 Views

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
0 Kudos
Reply