Timer0 ISR

Timer0 ISR

Postby alcofribas » Sat Jan 07, 2023 4:28 pm

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
alcofribas
 
Posts: 3
Joined: Sat Jan 07, 2023 3:58 pm

Re: Timer0 ISR

Postby ric » Sun Jan 08, 2023 11:27 pm

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.
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 659
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products


Return to Timers

Who is online

Users browsing this forum: No registered users and 7 guests

cron