On top of the other replies, why not do this:
Toggle directly port insted of flag and then port.Code:IF PIR1.0 THEN PIR1.0 = 0 TOGGLE portc.0 TMR1H = CAL_H : TMR1L = CAL_L ENDIF
Not tested though.
Ioannis
On top of the other replies, why not do this:
Toggle directly port insted of flag and then port.Code:IF PIR1.0 THEN PIR1.0 = 0 TOGGLE portc.0 TMR1H = CAL_H : TMR1L = CAL_L ENDIF
Not tested though.
Ioannis
Bookmarks