winnie mong
Junior Member level 3
- Joined
- Sep 8, 2013
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 366
hi friends...
i am using pic16f84 in my project and i need help in producing the interrupt ISR function, so as to keep track of time and avoid overflows right at the initialization stage.
this is what i already have,
i am using pic16f84 in my project and i need help in producing the interrupt ISR function, so as to keep track of time and avoid overflows right at the initialization stage.
this is what i already have,
Code C - [expand] 1 2 3 4 5 6 7 8 unsigned char pulses; interrupt isr(void) { if(T0IF) { ++pulses; // increment pulses T0IF=0; // reset TMR0 flag } }
Last edited by a moderator: