Using an 18F87J60, with Ethernet.
TickInit() configures timer0 and it enables timer0 interrupts. Do I need to do anything for an interrupt routine? I don't see the purpose of enabling interrupts since the timer is used for measuring elapsed based on tick counts.
My version of tick.c has no interrupt handler. The last history entry is by Howard Schlunder on 6/13/07.
SeeCwriter
Joined: 18 Nov 2013 Posts: 160
Posted: Tue Dec 09, 2014 9:53 am
Looking through Tick.c I found function TickUpdate(). The description says it "Updates the tick value when an interrupt occurs."
But since it's not declared as an interrupt routine, and it resets the interrupt flag of timer0, I'm assuming I need to create an isr and call this function from it. But clearing an interrupt flag from a non-interrupt function seems risky.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum