#include "c:\miniide\hcs12.inc" N equ 1350 org $1500 movw #paov_isr,UserPAccOvf ; set up PAOV interrupt vector ; the next five instructions place the 2's complement in PACNT ldd #N coma comb addd #1 std PACNT movb #$52,PACTL ; enable PACA, event counting mode, active edge is rising cli ; enable PAOV interrupt ; … swi paov_isr movb #$02,PAFLG ; clear the PAOVF flag end