May 2021 1 61 Report
MikroC pro program TMR0 problem?

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

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.