Chapter 17 Periodic Interrupt Timer (S12PIT24B8CV2)
MC9S12XE-Family Reference Manual Rev. 1.19
Freescale Semiconductor
675
MOVB
#$01,PITINTE
; enable interupt channel 0
MOVB
#$80,PITCFLMT
; enable PIT
CLI
; clear Interupt disable Mask bit
;******************** Main Program *************************************************************
MAIN:
BRA *
; loop until interrupt
;******************** Channel 0 Interupt Routine ***************************************************
CH0_ISR:
LDAA
PITTF
; 8 bit read of PIT time out flags
MOVB
#$01,PITTF
; clear PIT channel 0 time out flag
RTI
; return to MAIN
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages