Do you guys have a small example how to setup the Timer1 interrupt as a custom code in FC8 ,(dsPIC33EP)
I do not need the bit values of the registers my problem is the ISR function with the vector .
I have it in mikroC but that is not as it should be in Flowcode
In mikroC it look like this the ISR Function, I am looking for the FC-XC16 variant
Code: Select all
void Timer1Int() iv IVT_ADDR_T1INTERRUPT
{
T1CONbits.TON = 0;
T1IF_bit = 0; // clear T1IF
if(Index >=11){Index = 0;}
else{Index++;}
TMR1 = 0;
PR1 = SignalTime[Index];
SignalPin = SignalLevel[Index];
T1CONbits.TON = 1;
}