I'm new to pic's and the harmony framework, and i'm trying to toggle a pin from high to low and vice versa in the interrupt callback of the Timer.
I configured my oscillator to operate at 32 MHz
or at least is what appears here, so i suppose it's right:
Then i configured a Timer Driver, with prescale 256, so each tick is 8us:
Now my question, i want an interrupt to happen at each 8us, and i want to toggle a pin (RG0) at each interrupt. How can that be done?
I see what seems the interrupt code at the file system_interrupt.c
:
But if inside that function i put the following line:
LATGINV = 0x00000001;
nothing happens, i go check on the oscilloscope the signal and there is no toggle.
If i put the same line on main.c
it works, the problems is that it doesn't seem to be accessible in system_interrupt.c