The Analog Comparator (ACMP) compares two voltages and outputs a digital signal indicating which is larger. It has two analog input terminals, IN+ and IN-, and one digital output OUT.

Activation


In order for the ACMP cell to be used in a GreenPAK design, the power up signal (PWR UP) needs to be active (HIGH). It is possible to have each ACMP always on, always off, or switched on dynamically based on a digital signal from the connection matrix.

Parameters


Table 1.
Parameters ACMP0 ACMP1
IN+ source PIN3 PIN4
PIN4 PIN4/2
ADC PGA in (PIN8 out)
ADC PGA out
IN- source 30mV or 50mV 30mV or 50mV
1000mV or 1500mV 1000mV or 1500mV
PIN11 PIN11
ADC DAC out
FSM DAC out

1uA pullup on input:

1uA pullup on input option has 2 configurations: Enable and Disable (default option). Enabling this will connect the internal 1uA pull up. This setting is ideal for sensing small analog currents.

Hysteresis:

Each ACMP has four selectable hysteresis options 0mV, 12mV, 50mV and 150mV. Hysteresis values have been tested to show variations over PVT.

0mV: will disable the input signal hysteresis;

12mV: is a +6mV and -6mV hysteresis;

50mV: is a +0mV and -50mV Hysteresis. For Vref=1V, the trigger points will be 1V and 0.95V. Only applies if Vref is internal;

150mV: is a +0mV and -150mV hysteresis. For Vref=1V, the trigger points will be 1V and 0.85V. Only applies if Vref is internal;


Low bandwidth:

Enable/Disable a low pass filter, cutoff frequency << 5kHz, to IN+. Not to be confused with the Speed parameter and is much lower than Normal speed.

ACMP VREF band:

There are two selectable VREF bands. This will change the available thresholds in the IN- voltage parameter. Both options could be used for the VDD > 3.3V. For the VDD values less than 3.3V only 30mv-1V option operates correctly.

50 mV – 1.5 V

30mV – 1V


IN- voltage:

Negative Analog input source to ACMP. Values change depending on VREF Band selection.
For External (PIN11), do not exceed 1.5V external reference value. For bigger external references ACMPs will operate incorrectly.

ACMP0 IN+ source:

Positive Analog input source to ACMP0 only.

ACMP1 0.5 gain to IN+:

The IN+ source could have a gain stage of 0.5x before connection to the analog comparator.

ACMP1 IN- source:

Chose whether to use the IN- voltage as the IN- source or the DAC.

DAC input source:

If the above IN- source was chosen as the DAC, then use this property to select the source to the DAC. Either the ADC or FSM are valid DAC outputs. If ADC is chosen, then the output of the ADC is converted to an Analog signal as the IN- source. If the FSM is chosen, then the 8-bit counter data is converted to an Analog signal as the IN- source.

NOTE:

Due to GreenPAK2’s internal structure this feature only operates correctly at VDD=1.8V.

NOTE:

Use different POR options for ACMPs correct operation:

Use auto power detect POR setting if VDD will change and can be less than or greater than 2.7 V;

Use VDD bypass to analog blocks POR setting if VDD will be in range 1.71V-2.7V;

Use regulator always on POR setting if VDD will be in range 2.7V-5.5V;