Datasheet

DS_1215F_003 73S1215F Data Sheet
Rev. 1.4 55
1.7.9 Analog Voltage Comparator
The 73S1215F includes a programmable comparator that is connected to the ANA_IN pin. The
comparator can be configured to trigger an interrupt if the input voltage rises above or falls below a
selectable threshold voltage. The comparator control register should not be modified when the analog
interrupt (ANAIEN bit in the INT6Ctl register) is enabled to guard against any false interrupt that might be
generated when modifying the threshold. The comparator has a built-in hysteresis to prevent the
comparator from repeatedly responding to low-amplitude noise. This hysteresis is approximately 20mV.
The maximum voltage on the ANA_IN pad should be less than 3 volts. An external resistor divider is
required for detecting voltages greater than 3.0 volts. Interrupt control is handled in the INT6Ctl register.
Analog Compare Control Register (ACOMP): 0xFFD0 Å 0x00
Table 60: The ACOMP Register
MSB LSB
ANALVL – ONCHG CPOL CMPEN 0 TSEL.1 TSEL.0
Bit Symbol Function
ACOMP.7 ANALVL
When read, indicates whether the input level is above or below the
threshold. This is a real time value and is not latched, so it may change
from the time of the interrupt trigger until read.
ACOMP.6 –
ACOMP.5 ONCHG
If set, the Ana_interrupt is invoked on any change above or below the
threshold, bit 4 is ignored.
ACOMP.4 CPOL
If set = 1, Ana_interrupt is invoked when signal rises above selected
threshold. If set = 0, Ana_interrupt is invoked when signal goes below
selected threshold (default).
ACOMP.3 CMPEN
Enables power to the analog comparator. 1= Enabled. 0 = Disabled
(default).
ACOMP.2 0 This value must be fixed at 0.
ACOMP.1 TSEL.1
Sets the voltage threshold for comparison to the voltage on pin ANA_IN.
Thresholds are as follows:
00 = 1.00V
01 = 1.24V
10 = 1.40V
11 = 1.50V
ACOMP.0 TSEL.0