hey ,everybody !!
*my problem is about the TOIF bit in INCON register
*it is supposed to wait until the 7-th bit of TMR0 is set, and then the LED on the RP(1) should emit, so then it should wait until the TMR0 is 0xFF and the TOIF bit of intcon in set, so when it is, the LED must turn off on RP(1).
*but when the timer is 0xFF , the "Stack over flow error occurred from instruction at 0x000006" is seen on the output, and the LED is still emits, because it cant reach to CLR PORTB,1 instruction.
*help me please with it, i can paste it. and alsoo, im using MPLAB IDE,v8.36 and this program is for PIC16F84 microcontroller . any responce appreciated
*my problem is about the TOIF bit in INCON register
*it is supposed to wait until the 7-th bit of TMR0 is set, and then the LED on the RP(1) should emit, so then it should wait until the TMR0 is 0xFF and the TOIF bit of intcon in set, so when it is, the LED must turn off on RP(1).
*but when the timer is 0xFF , the "Stack over flow error occurred from instruction at 0x000006" is seen on the output, and the LED is still emits, because it cant reach to CLR PORTB,1 instruction.
*help me please with it, i can paste it. and alsoo, im using MPLAB IDE,v8.36 and this program is for PIC16F84 microcontroller . any responce appreciated