Hi all, can anyone please help me in setup up the timer interrupt? I could only see the printing of "Entered 2". Kindly check on the attached text file for my code. Kindly assist. Thanks in advance.
Hi all, can anyone please help me in setup up the timer interrupt? I could only see the printing of "Entered 2". Kindly check on the attached text file for my code. Kindly assist. Thanks in advance.
When I look at this code I can't find any errors. Is there more code running, or is this the only code?
A timer is configured and interrupt handler is set in this example:
also for other peripherals
yes. This is the only code. I want to make sure the timer interrupt is working first before adding in anything to it. But so far it is still not working. I stuck at the initialisation "start_timer()" as i only can see "Entered 2" is printed out. If I comment out "start_timer()" function then i can see the print out of "Entered 1" only. Kindly assist. Thanks.
Hi, I already tried to follow the example setup and i still stuck at the initialisation "start_timer()" as i only can see "Entered 2" is printed out. I think my code in timer_interrupt.txt had configured the timer accordingly. Kindly assist. Thanks.
Hmm, cant quickly see anything wrong with your code either. You could try to lower the interrupt frequency to see if that helps. You could also try to flash a LED instead of writing to serial, to see if that makes a difference.