Page 1 of 1

Timer0 ISR

PostPosted: Sat Jan 07, 2023 4:28 pm
by alcofribas
Hi all
I'm trying to do a very little thing...but, new to PIC, things are[u] not going as smoothly as they should
PIC16F18855 Timer0
I've been using MPLAB IDE with MCC to initiate TIMER0 interrupt every 100ms...using Fosc/4 hence 4us clock period) for clock
I've checked the TMR0H and TMR0L values OK
Validated ( TOEN )

Do you guys know where is located the ISR ?
I have located a Timer0_overflowISR, a Tiee mer0_OverflowCallbackRegister..and other stuff...Is it the place ?

Well I don't kwnow exactly what shld I do

rgds

Re: Timer0 ISR

PostPosted: Sun Jan 08, 2023 11:27 pm
by ric
PIC16F chips only have a single hardware interrupt service routine. It's MCC which adds code to check the Interrupt Request bits and call individual routines with arbitrary names.
Note, saying things like "I've checked the TMR0H and TMR0L values OK" are no use to anyone trying to help you.
We need to see HOW you checked, and what values you actually got, otherwise we are working blind. Nearly always the problems are in the details you don't bother explaining.