Hi Guys,
Has anyone written code with interrupt vectors for PIC18 series with C18?
I am trying to make a timer overflow in Bill's Dragonfly kit.
The code I have is this:
OpenTimer0(
TIMER_INT_ON &
T0_8BIT &
T0_SOURCE_EXT &
T0_PS_1_16);
#pragma interrupt TimerOverflow
void TimerOverflow()
{
...
Not sure how to enable GIE and the Timer interrupt. It's not documented in the Microchip C18 manual (maybe I'm not looking properly)
So far, I'm running on the debugger and the function never gets fired!
Thanks guys!
Has anyone written code with interrupt vectors for PIC18 series with C18?
I am trying to make a timer overflow in Bill's Dragonfly kit.
The code I have is this:
OpenTimer0(
TIMER_INT_ON &
T0_8BIT &
T0_SOURCE_EXT &
T0_PS_1_16);
#pragma interrupt TimerOverflow
void TimerOverflow()
{
...
Not sure how to enable GIE and the Timer interrupt. It's not documented in the Microchip C18 manual (maybe I'm not looking properly)
So far, I'm running on the debugger and the function never gets fired!
Thanks guys!