xpress_embedo
Advanced Member level 4
Hello!!! I am using MPLAB IDE along with Hi-tech C Compiler to use the PIC16F877A
I am trying to write a program to give some delay in Timer0 Mode.
But My Problem is that.
while(INTCONbits.TMR0IF == 0); //This Statement Works Fine
but when i reset the TMR0IF bit it doesnt work
means
INTCONbits.TMRR0IF = 0; //This gives no error but doesn't produce any effect
Here is the Image of My Problem
I am trying to write a program to give some delay in Timer0 Mode.
But My Problem is that.
while(INTCONbits.TMR0IF == 0); //This Statement Works Fine
but when i reset the TMR0IF bit it doesnt work
means
INTCONbits.TMRR0IF = 0; //This gives no error but doesn't produce any effect
Here is the Image of My Problem