Code: Select all
procedure Timer1Int(); iv IVT_TIMER_1; ilevel 7; ics ICS_SRS;
begin
T1IF_bit := 0; // Clear T1IF
LATB := not PORTB; // Invert PORTB
end;
and the mail program put the new the priority 7:
T1IP0_bit := 1; // set interrupt
T1IP1_bit := 1; // priority
T1IP2_bit := 1;
it is necesary define in the procedure and the mail program.
i can put only in tha main program?
thank you.
Kind regard.