AN2688 Freescale Semiconductor / Motorola, AN2688 Datasheet - Page 13

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
MOTOROLA
Implementing a 10-Bit Sigma-Delta Analog-to-Digital Converter
Figure 13. The Complete First-Order Σ∆ AD Converter Software Flowchart
Using the HC9S08Rx MCU Family Analog Comparator
CLEAR VARIABLES FOR
COUNTER AND RESULT
Freescale Semiconductor, Inc.
For More Information On This Product,
PTE0 = 0
Go to: www.freescale.com
Y
INITIALIZATION REGISTERS
CLEAR VARIABLES FOR
COUNTER AND RESULT
INCREMENT COUNTER
PTB AND PTC OUTPUT
INTERRUPT OCCURS
INCREMENT RESULT
PTA1 AND PTA2 = 1
TIMER REGISTERS
COUNTER < 1024?
CONFIGURATION
CONFIGURATION
SET PORT S AS
ACMP > V
THE RESULT
WAIT MODE
PTE0 = 1
PTE1 = 0
PTE1 = 1
OUTPUT
START
N
Y
REF
?
N
PTA1 AND PTA2 = 0
Software Description
AN2688/D
13

Related parts for AN2688