English
Language : 

MAX13037 Datasheet, PDF (13/22 Pages) Maxim Integrated Products – Automotive Contact Monitor and Level Shifters with LDO Regulator
Automotive Contact Monitor and
Level Shifters with LDO Regulator
Mechanical Switch Inputs (IN0–IN7)
IN0–IN7 are the inputs for remote mechanical switches.
The status of each switch input is indicated by the SW0
through SW7 bits in the status register, and each switch
input can be programmed to not assert an interrupt
(INT) by writing to the P0–P7 bits in the command reg-
ister. All switch inputs are configured to assert an inter-
rupt upon power-up.
The first four inputs (IN0–IN3) are intended for ground-
connected switches. The remaining four inputs (IN4–IN7)
can be programmed in sets of two for either ground-con-
nected or battery-connected switches by writing to the
M0 and M1 bits (see Table 5). The default state after
power-up is IN2–IN7 configured for ground-connected
switches, and IN0/IN1 configured for direct inputs.
All switch inputs have internal 16kΩ sense resistors to
detect switch transitions. Inputs configured for ground-
connected switches are pulled up to BAT and inputs con-
figured for battery-connected switches are pulled down to
GND. Figure 5 shows the switch input structure for IN0
and IN1. IN0 and IN1 can be programmed as direct
inputs with level-shifted outputs (DO0 and DO1) by clear-
ing the WEND bit in the command register (normal mode
only). When programmed as direct inputs, IN0 and IN1
can be used for PWM or other signaling. Clearing the
WEND bit disables the sense resistors and wetting cur-
rents on IN0 and IN1. When programmed as direct inputs,
the status of IN0 and IN1 is not reflected in the status reg-
ister, and interrupts are not allowed on these inputs.
VBAT
MAX13037
MAX13038
WETTING*
CURRENT
IN0, IN1
CONTROL
LOGIC
16kΩ*
NOTES:
*WETTING CURRENT AND PULLUP/DOWN RESISTORS ARE
CONTROLLED BY THE WEN AND WEND BITS IN THE COMMAND
REGISTER (SEE TABLE 4).
Figure 5. Input Structure of IN0 and IN1
Switch Threshold Levels and
Hysteresis (BATREF, HYST)
Input thresholds for the remote switches are 50% of the
voltage applied to BATREF. The BATREF input is typical-
ly connected to the battery voltage before the reverse-
battery protection diode. The MAX13037/MAX13038
feature adjustable hysteresis on the switch inputs by
connecting an external 0 to 900kΩ resistor from HYST to
ground (normal mode only). Short HYST to ground to
obtain the maximum hysteresis of (0.5 x VBATREF). The
approximate formula for hysteresis is given below:
VHYST
=
⎡
⎢0.166
⎣⎢
+
(123
+
43
(RHYST(kΩ)
)
⎤
⎥
⎦⎥
(VBATREF
)
To reduce power consumption, the adjustable hystere-
sis can be disabled by setting [SC2:SC1:SC0 = 1:1:0]
in the command register. When the adjustable hystere-
sis is disabled, the hysteresis is set to 0.166 x VBATREF.
Switch Debounce and Deglitch
The switch inputs IN0–IN7 share a common program-
mable debounce timer to increase the noise immunity
of the system in normal and scan mode. The switch
debounce time is set by connecting a capacitor
between the tDEB input and ground. The minimum
value of this capacitor is 500pF and the maximum value
is 10nF, corresponding to a debounce time of 5ms to
100ms respectively. To calculate other debounce times
the following formula should be used:
C(nF) = tDEB(ms) / 10
All switch input glitches of less than 20µs in duration are
automatically rejected by the MAX13037/MAX13038.
Debounce in Normal Mode
When a change of state occurs at the switch input the
debounce timer starts. If the new state is stable for at least
tDEB, the status register is updated and an interrupt is
generated (if enabled). If the input returns to its previous
state before the debounce time has elapsed, an interrupt
is not generated and the status register is not updated.
Debounce in Scan Mode
A change of state at the switch input causes the device to
automatically enter normal mode and the debounce timing
to start. The device remains in normal mode as long as the
input state differs from the previous state. As soon as the
debounce time ends, the status register is updated, an
interrupt is generated, and the device re-enters scan mode.
If the input returns to its previous state before the end
of the debounce time, the device re-enters scan mode,
an interrupt is not generated, and the status register is
not updated.
______________________________________________________________________________________ 13