|
MC9S08SG32 Datasheet, PDF (113/328 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers | |||
|
◁ |
Chapter 8
Analog Comparator 5-V (S08ACMPV3)
8.1 Introduction
The analog comparator module (ACMP) provides a circuit for comparing two analog input voltages or for
comparing one analog input voltage to an internal reference voltage. The comparator circuit is designed to
operate across the full range of the supply voltage (rail-to-rail operation).
Figure 8-1 shows the MC9S08SG32 Series block diagram with the ACMP highlighted.
8.1.1 ACMP Conï¬guration Information
When using the bandgap reference voltage for input to ACMP+, the user must enable the bandgap buffer
by setting BGBE =1 in SPMSC1 see Section 5.7.6, âSystem Power Management Status and Control 1
Register (SPMSC1)â. For value of bandgap voltage reference see Section A.6, âDC Characteristicsâ.
8.1.2 ACMP/TPM Conï¬guration Information
The ACMP module can be conï¬gured to connect the output of the analog comparator to TPM1 input
capture channel 0 by setting ACIC in SOPT2. With ACIC set, the TPM1CH0 pin is not available externally
regardless of the conï¬guration of the TPM1 module for channel 0.
MC9S08SG32 Data Sheet, Rev. 7
Freescale Semiconductor
113
|
▷ |