Analog_detect_disable(), Analog _compare(), E 54) – Maxim Integrated 73S12xxF Software User Manual
Page 54

73S12xxF Software User Guide
UG_12xxF_016
54
Rev. 1.50
Parameters
threshold_select: Input parameter
Specifies which input voltage channel must be compared against Vcompare.
Allowable values are in the range [0, 7].
acomp_pol: Input parameter
Specifies the polarity for which an interrupt occurs; when voltage level is Above (acomp_pol
= 1) or Below (acomp_pol = 0). Voltage levels are values in the range [0, 7].
7 corresponds to 2.50 volts
//Only available with the 73S1205F
6 corresponds to 2.30 volts
//Only available with the 73S1205F
5 corresponds to 2.00 volts
//Only available with the 73S1205F
4 corresponds to 1.75 volts
//Only available with the 73S1205F
3 corresponds to 1.50 volts
2 corresponds to 1.40 volts
1 corresponds to 1.24 volts
0 corresponds to 1.00 volts.
Return Codes None.
ANALOG_Detect_Disable()
Purpose
Disable the Analog level detect interrupt.
Synopsis
Void ANALOG_Detect_Disable ( void );
Parameters
None.
Return Codes None.
ANALOG _Compare()
Purpose
Compare the selected input voltage against specified threshold.
Synopsis
enum ANALOG_RC ANALOG_Compare (
IN unsigned char threshold_select,
IN unsigned char acomp_pol );
Parameters
threshold_select: Input parameter
Specifies which input voltage to compare against ANA_IN. Values are in the range
[0, 7] as specified below.
acomp_pol: Input parameter
Specifies which level to compare against (above or below). Values are in the range [0, 7].
7 corresponds to 2.50 volts
6 corresponds to 2.30 volts
5 corresponds to 2.00 volts
4 corresponds to 1.50 volts
3 corresponds to 1.40 volts
2 corresponds to 1.28 volts
1 corresponds to 1.24 volts
0 corresponds to 1.00 volts.
Return Codes ANALOG_OK
ANALOG_BELOW
ANALOG_ABOVE