Am writing a PIC program using MikroC pro, am using 16F877A, the program is not working because TMR0 is not increasing, I initialized it as following:
OPTION_REG = 0x82; // Assign prescaler to TMR0
TMR0 = 6; // Timer0 initial value
INTCON = 0xA0; // Enable TMRO interrupt
when debugging, i can see clearly that TMR0 is not increasing at all, what do you think that the problem could be?
Thanks in advance
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
Report this problem to the programming service to get things fixed.