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.
I couldn't compile. These are the errors : error: conflicts with new declaration with 'C' linkage previous declaration of 'void TIMER1_IRQHandler()' with 'C++' linkage
Did you copy and paste my code?
Yes I did.
Monpetit answered your question - it's C++ vs C linkage and it would have helped if you'd pointed out you were using Arduino build environment at the start. You need to figure out how to fix the compilation error you're getting - which means starting by working out where the previous definition comes from which is using C++ linkage.
Hi, I already posted a new code. please check out the "Timer_Interrupt.txt". I able to make it displaying "Entered 3" but in a very rapid speed even though after manipulating the value of "comp1". Besides that, I cannot see any display of "Entered 1" so i assume the loop() is not working.