Hi
I am using MikroC compiler for the PIC18F4520 family.
I want to know how I check if TMR0 has overflowed?
I have seen on a PIC16xxxx device it is just as TMR0, the following are snippets of code for a PIC16F device :-
i.e. TMR0 = 0 /*clear TMR0*/
while (TMR0 < (int) 500/2.048))
How do I do the same for the PIC18F4520 in Mikro C. I can't just type TMR0 as the compiler reports an error.
Any help would be greatly appreciated.
Thanks in advance
I am using MikroC compiler for the PIC18F4520 family.
I want to know how I check if TMR0 has overflowed?
I have seen on a PIC16xxxx device it is just as TMR0, the following are snippets of code for a PIC16F device :-
i.e. TMR0 = 0 /*clear TMR0*/
while (TMR0 < (int) 500/2.048))
How do I do the same for the PIC18F4520 in Mikro C. I can't just type TMR0 as the compiler reports an error.
Any help would be greatly appreciated.
Thanks in advance