AN2688 Freescale Semiconductor / Motorola, AN2688 Datasheet - Page 17

no-image

AN2688

Manufacturer Part Number
AN2688
Description
Implementing a 10-Bit Sigma-Delta Analog-to-Digital Converter Using the HC9S08Rx MCU Family Analog Comparator
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
;*******************************************************************************************
;* Timer Interrupt
;*******************************************************************************************
TPMInt:
SetOutHigh: bset
END
MOTOROLA
lda
bclr
bset
brset ACO,ACMPSC,SetOutHigh ;jump to SetOutHigh if ACO == 1
bclr
bclr
rti
bset
rti
TPMSC
TOF,TPMSC
PTE0,PTE
PTA1,PTA
PTA2,PTA
PTA1,PTA
PTA2,PTA
Implementing a 10-Bit Sigma-Delta Analog-to-Digital Converter
Using the HC9S08Rx MCU Family Analog Comparator
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
;read TPMSC register (required before clearing TOF)
;clear Timer Overflow Flag
;set bit 0 of port PTE
;clear bit 1 of port PTA
;clear bit 2 of port PTA
;return from interrupt routine
;set bit 1 of port PTA
;set bit 2 of port PTA
;return from interrupt routine
Software Listings
AN2688/D
17

Related parts for AN2688