Using the Analog Comparator (ACMP) for the QE Microcontrollers
QE128 Quick Reference User Guide, Rev. 1.0
7-6
Freescale Semiconductor
}
7.3.2
Hardware Inplementation
This project is developed using the demo board. Extra hardware is needed. A variable resistor of 1 k
Ω
is
required. One terminal of the POT is connected to 3.3 V and the other terminal is connected to the ground.
In this configuration when POT varies, the voltage in the center pin changes, this pin is the input for PTC7
pin.
Figure 7-3
shows the hardware configuration.
Figure 7-3. ACMP Hardware Implementation
NOTE
This example is developed using the CodeWarrior IDE version 6.0 for the
HCS08 and V1 families. It is expressly made for the MCF51QE128 and
MC9S08QE128 (64-pin package). There may be changes needed in the
code to initialize another MCU.