Using the Analog Comparator (ACMP) for the QE Microcontrollers
QE128 Quick Reference User Guide, Rev. 1.0
7-4
Freescale Semiconductor
7.2.2
Hardware Implementation
This project is developed using the EVBQE128 STARTER KIT. Extra hardware is needed. A variable
resistor of 1 k
Ω
is required. One terminal of the potentiometer (POT) is connected to 3.3 V and the other
terminal is connected to the ground. When the POT varies, the voltage in the center pin change. This pin
is the input for the PTC7 pin.
Figure 7-2
shows the hardware configuration.
Figure 7-2. 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 (80-pin package). There may be changes needed in the
code to initialize another MCU.