English
Language : 

S9S12G128F0CLF Datasheet, PDF (223/1158 Pages) Freescale Semiconductor, Inc – MC9S12G Family Reference Manual
5V Analog Comparator (ACMPV1)
The following setup is recommended to control an external component:
1. Route internal monitoring signals to ACMP inputs: PRR2[ACROV]=1
2. Enable ACMP raw signal output on ACMPO1 pin: PRR2[ACOPE1]=1
3. Select desired ACMPO1 output polarity by setting PRR2[ACOPS]
4. Configure ACMP to trigger on rising edge: ACMPC[ACMOD1:ACMOD0]=0b01
5. Enable ACMP: ACMCP[ACE]=1
NOTE
Operation of the device with supply VDD35 between maximum specified
operating voltage and Vassert(max) must be limited over total lifetime (refer
to operating conditions in App. A). The TJ(max) specification must be
obeyed.
MC9S12G Family Reference Manual, Rev.1.10
Freescale Semiconductor
223