The MAX13037/MAX13038 automotive contact monitor
and level shifters monitor and debounce eight remote
mechanical switches and assert an interrupt (INT) if a
switch changes state. The state of each switch is sampled through an SPI™ interface by reading the status
register. Any switch can be prohibited from asserting an
interrupt by writing to the command register. Four of the
switch inputs are intended for ground-connected
switches (IN0–IN3) and the other four inputs (IN4–IN7)
are programmable in groups of two for either groundconnected or battery-connected switches. Two switch
inputs (IN0, IN1) have direct level-shifted outputs (DO0,
DO1) to be used for PWM or other timing-based signals.
Switch input thresholds are set to 50% of the voltage
applied to BATREF. The threshold hysteresis is set by
connecting an external resistor from HYST to ground.
The MAX13037/MAX13038 supply an adjustable wetting current to each closed switch to clean mechanical
switch contacts that are exposed to adverse conditions.
The MAX13037/MAX13038 feature a low dropout (LDO)
linear regulator capable of supplying up to 150mA of
current. The MAX13037 LDO has an output voltage of
+5V, whereas the MAX13038 has an output voltage of
+3.3V. The MAX13037/MAX13038 also feature a watchdog timer and an open-drain reset output with
adjustable timing.
The MAX13037/MAX13038 operate with a +6V to +26V
battery voltage applied to BAT. The MAX13037/
MAX13038 are available in a 6mm x 6mm, 36-pin TQFN
package and operate over the automotive -40°C to
+125°C temperature range.
(All voltages referenced to GND, unless otherwise noted.)
ELECTRICAL CHARACTERISTICS
(BAT = +6V to +26V, TA= -40°C to +125°C, unless otherwise noted. Typical values are at BAT = +14V, TA= +25°C.) (Note 2)
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
VLO........................................................................-0.3V to +6.0V
BAT.........................................................................-0.3V to +42V
IN_ , BATREF...........................................................-45V to +45V
IN_ to BAT ...............................................................-45V to +45V
SD, REGON. ...........................................................-0.3V to +45V
HYST, WET, TD, TDEB, THRESH, OT, INT, RST......-0.3V to 6.0V
CS, CLK, SDI, SDO, WDI,
DO0, DO1, REGOFF.......................................-0.3V to (V
4IN2Switch Input Channel 2. Connect IN2 to a switch connected to GND.
5IN3Switch Input Channel 3. Connect IN3 to a switch connected to GND.
6IN4Switch Input Channel 4. Connect IN4 to a switch connected to GND or BAT.
7IN5Switch Input Channel 5. Connect IN5 to a switch connected to GND or BAT.
8IN6Switch Input Channel 6. Connect IN6 to a switch connected to GND or BAT.
9IN7Switch Input Channel 7. Connect IN7 to a switch connected to GND or BAT.
10, 11, 34N.C.No Connection. Not internally connected.
12HYST
13WET
14TDEB
16OT
17INT
18TD
MAX13037/8toc18
1ms/div
Switch Input Channel 0. Connect IN0 to a switch connected to GND. IN0 can be programmed as a
direct input with a level-shifted output on DO0 (see the Mechanical Switch Inputs (IN0–IN7) section).
Switch Input Channel 1. Connect IN1 to a switch connected to GND. IN1 can be programmed as a
direct input with a level-shifted output on DO1 (see the Mechanical Switch Inputs (IN0–IN7) section).
Hysteresis Input. Connect HYST to GND with a 0Ω to 900kΩ resistor to set the input voltage
hysteresis on IN0–IN7.
Wetting Current Input. Connect a 30kΩ to 330kΩ resistor from WET to GND to set the wetting current
on IN0–IN7.
Switch Debounce Time Input. Connect a 500pF to 10nF capacitor from TDEB to GND to set the
switch debounce time.
Overtemperature Warning Output. OT is an open-drain output that asserts low when the thermal
warning threshold is exceeded.
Interrupt Output. INT is an open-drain output that asserts low when one or more of the IN0–IN7 inputs
change state and are enabled for interrupts or when the watchdog times out.
Reset and Watchdog Timeout Input. Connect TD to GND with a 500pF to 10nF capacitor to set the
timeout period for the reset and watchdog.
MAX13037/MAX13038
Automotive Contact Monitor and
Level Shifters with LDO Regulator
27DO1Data Output Channel 1. DO1 is the level-shifted output of IN1 when WEND = 0.
28DO0Data Output Channel 0. DO0 is the level-shifted output of IN0 when WEND = 0.
29THRESH
30WDIWatchdog Timer Input. The watchdog timer is reset at every transition on the WDI input.
32BATREF
33V
35, 36BAT
—EPExposed Paddle. Connect EP to GND.
LO
Shutdown Input. Drive SD low to place the MAX13037/MAX13038 into shutdown mode and disable
the linear regulator. Drive SD high for normal operation. SD is compatible with voltages up to V
Linear Regulator Enable Input (Active Low). Connect REGON to INT to enable a wake-up when a
switch status change is detected. Drive REGON using an open-drain logic output to control the
regulator directly. REGON is internally pulled up to an internal bias voltage of approximately +4.8V.
Linear Regulator Disable Input (Active Low). REGOFF is used in conjunction with REGON when the
internal regulator is enabled by an interrupt (see the Low-Dropout Linear Regulator (V
SPI Chip-Select Input. Drive CS low to enable the clocking of data into and out of the
MAX13037/MAX13038. SPI data is latched into the MAX13037/MAX13038 on the rising edge of CS.
SPI Serial-Data Output. SPI data is output on SDO on the rising edges of CLK while CS is held low.
SDO is three-state when CS is high.
SPI Serial-Data Input. SPI data is latched into the internal shift register on the falling edges of CLK
while CS is held low. SDI has an internal 100kΩ pulldown resistor.
Reset Output. RST is an open-drain output that asserts low when V
determined by the THRESH input. RST also asserts low when the watchdog times out.
Reset Threshold Level Input. Connect THRESH to a resistor divider between V
reset reference level.
Battery Reference Input. Switch thresholds are set to 50% of the voltage applied to BATREF. Connect
BATREF to the system’s battery supply voltage.
Linear Regulator Output. VLO is the output of an internal linear regulator and is the reference voltage
for all digital I/O. Bypass V
electrolytic capacitor can be used in parallel with a 0.1µF ceramic capacitor.
Battery Supply Input. Connect BAT to a positive +6V to +26V battery supply voltage. Bypass BAT to
ground with a 0.1µF ceramic capacitor and a 10µF electrolytic capacitor placed as close as possible
to BAT.
with a 2.2µF or greater ceramic capacitor. Alternatively, a 10µF
The MAX13037/MAX13038 automotive contact monitor
and level shifters monitor and debounce eight remote
mechanical switches and assert an interrupt (INT) if a
switch changes state. Any of the switch inputs can be
prohibited from asserting an interrupt. The switch
threshold levels are set to 50% of the voltage applied to
BATREF and all switch inputs feature a common
adjustable hysteresis, debounce time, and wetting current. Two switch inputs (IN0, IN1) are programmable to
have direct outputs (DO0, DO1), useable for PWM or
other timing-based signals.
The MAX13037/MAX13038 feature an SPI interface to
monitor individual switch inputs and to configure interrupt masking, hysteresis, and wetting current
enable/disable, switch configuration (batteryconnected or ground-connected), and scanning period.
The MAX13037/MAX13038 provide an internal low
dropout (LDO) linear regulator capable of supplying up
to 150mA. The LDO can be enabled or disabled
through two digital control inputs: REGON and REGOFF.
A watchdog timer and power-on reset circuitry is provided on the MAX13037/MAX13038 to supervise external
microcontrollers (µC).
The MAX13037/MAX13038 feature three modes of
operation: normal mode, scanning mode, and shutdown mode. In normal mode, the part is fully functional
and internal sensing resistors are connected to all
switch inputs. In scanning mode, the sensing resistors
are connected for a finite duration to reduce power
consumption. In shutdown mode, all switch inputs are
high impedance and the internal LDO is switched off to
further reduce power consumption.
Functional Diagram
REGON
REGOFF
BATREF
IN0
IN1
IN2
IN3
IN4
IN5
IN6
IN7
WAKE-UP
LOGIC
WETTING
CURRENT
CONTROL
SDBAT
MAX13037
MAX13038
LEVEL
TRANSLATORS
LINEAR
REGULATOR
SHIFT
REGISTER
SPI
INTERFACE
INTERRUPT
LOGIC
V
LO
RESET +
WATCHDOG
DIGITAL
INTERFACE
WDI
THRESH
TD
DO0
DO1
CS
CLK
SDI
SDO
INT
RST
OT
WETTDEB
GNDHYST
MAX13037/MAX13038
Automotive Contact Monitor and
Level Shifters with LDO Regulator
BAT is the main power-supply input. Bypass BAT to
ground with a 0.1µF ceramic capacitor placed as close
as possible to BAT. In addition, bypass BAT with a
10µF or greater capacitor. BAT can withstand DC voltages up to +42V.
Low-Dropout Linear Regulator (VLO)
The MAX13037/MAX13038 contain an internal LDO linear regulator supplied by the BAT input. The LDO output voltage is present on VLOand is capable of
supplying up to 150mA of current. The MAX13037 output voltage is set to +5V and the MAX13038 output
voltage is set to +3.3V.
The LDO regulator is controlled through the REGON
and REGOFF inputs as shown in Figure 4. REGON is
an input able to withstand voltages up to V
BAT
. The
LDO startup time is 1ms (typ).
There are two options for controlling the linear regulator:
• Wake-Up on Interrupt: In this case, REGON is con-
nected to INT and when the MAX13037/MAX13038
generate an interrupt, the linear regulator is turned
on, thus providing power to the local µCs. The µC
pulls REGOFF high to keep the regulator on before
making an SPI read (which causes INT and REGON
to go high). The linear regulator can then be turned
off by pulling REGOFF low.
• Direct Control: In this case, the regulator is
enabled/disabled by some other signal in the system which must be connected to REGON. If
REGOFF is not used, it must be connected to GND
to allow the turnoff of the LDO.
Linear Regulator Wake-Up
Regulator wake-up can be controlled with the INT output by connecting it to REGON. REGON is a TTL input
with an internal pullup to a low-voltage internal reference of +4.8V (typ). With this control scheme, any
change of the input switches (enabled for interrupt generation) causes the regulator to turn on, thus providing
power to any external circuitry connected to VLO. If an
external microcontroller is supplied from VLO, the
microcontroller can keep the LDO on by forcing
REGOFF high. Reading from the MAX13037/MAX13038
over the SPI interface causes the INT output to go into
high-impedance so that both INT and REGON are
pulled high. After this phase, the microcontroller can
turn off the regulator again by driving REGOFF low.
Note that it is also possible to tie multiple open-drain
active-low outputs in an ORing configuration, allowing
the wakeup of the regulator from other devices.
If the INT output is not used to control the regulator,
connect the REGOFF input to ground and use REGON
to enable or disable the regulator as shown in Figure 4.
Watchdog Timer (WDI)
The MAX13037/MAX13038 feature a watchdog timer
that is reset on every transition on the WDI input. If
there is no transition on WDI before the first timeout
period (t
WD1
) the INT output asserts low. If there is still
no transition on WDI after the second timeout period
(t
WD2
), the RST output is pulsed low for t
RST
and the
INT output deasserts (see Figure 3). The watchdog
timeout period can be adjusted by changing the
capacitor value on the TD input.
t
RST
(ms) = 2 x CTD(nF)
t
WD1
= 4 x t
RST
(ms)
t
WD2
= 8 x t
RST
(ms)
Note that WDI can be tied to the CS input to allow a
watchdog reset for every read/write operation over the
SPI interface. To avoid any corruption of the internal
command register, it is necessary to transmit the full programming word (16 bits) for every CS negative pulse.
Reset Output (
RST
)
The RST output asserts low when a watchdog timeout
occurs or when the LDO output voltage drops below a
certain threshold. The threshold voltage is set by connecting an external voltage divider on the THRESH
input between VLOand GND. The voltage on THRESH
is compared with an internal reference voltage of
+1.24V and if it is lower, the RST output asserts low
for t
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 register. All switch inputs are configured to assert an interrupt upon power-up.
The first four inputs (IN0–IN3) are intended for groundconnected switches. The remaining four inputs (IN4–IN7)
can be programmed in sets of two for either ground-connected 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 groundconnected switches are pulled up to BAT and inputs configured 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 clearing 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 currents on IN0 and IN1. When programmed as direct inputs,
the status of IN0 and IN1 is not reflected in the status register, and interrupts are not allowed on these inputs.
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 typically connected to the battery voltage before the reversebattery 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 V
BATREF
). The
approximate formula for hysteresis is given below:
To reduce power consumption, the adjustable hysteresis can be disabled by setting [SC2:SC1:SC0 = 1:1:0]
in the command register. When the adjustable hysteresis is disabled, the hysteresis is set to 0.166 x V
BATREF.
Switch Debounce and Deglitch
The switch inputs IN0–IN7 share a common programmable 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 t
DEB
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) = t
DEB
(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
t
DEB
, 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.
Figure 5. Input Structure of IN0 and IN1
V
WETTING*
CURRENT
IN0, IN1
NOTES:
*WETTING CURRENT AND PULLUP/DOWN RESISTORS ARE
CONTROLLED BY THE WEN AND WEND BITS IN THE COMMAND
REGISTER (SEE TABLE 4).
BAT
MAX13037
MAX13038
CONTROL
LOGIC
16kΩ*
V
⎡
=+
HYST
⎢
⎢
⎣
0 166
43
R
+
123.(()
HYST(k )
⎤
V
()
⎥
BATREF
⎥
Ω
⎦
MAX13037/MAX13038
Automotive Contact Monitor and
Level Shifters with LDO Regulator
The MAX13037/MAX13038 feature adjustable wetting
current to any closed switch to clean switch contacts
that are exposed to adverse conditions. The wetting
current is set by connecting a 30kΩ to 330kΩ resistor
from WET to ground. A 30kΩ resistor corresponds to a
wetting current of 40mA (typ) and a 330kΩ resistor corresponds to a 4mA (typ) wetting current. See the
Typical Operating Characteristics
section for the rela-
tionship between the wetting current and R
WET
.
The WEN and WEND bits in the command register
enable and disable the wetting currents and the
WTOFF bit allows the wetting current to be activated for
a duration of 20ms (typ) (see the
Command Register
section). Disabling wetting currents, or limiting the
active wetting current time reduces power consumption. The default state upon power-up is all wetting currents disabled.
Wetting current is activated on closed switches just
after the debounce time. The wetting current pulse
starts after the debounce time. A wetting current pulse
is provided to all closed switches when a valid input
change is detected. Wetting current rise and fall times
are controlled to enhance EMC performance. There is
one wetting current timer for all switch inputs.
Therefore, it is possible to observe wetting pulses
longer than expected whenever two switches turn on in
sequence and are spaced out less than t
WET
. In scan
mode, the wetting current is enabled during the polling
pulse only.
When using wetting currents, special care must be
taken to avoid exceeding the maximum power dissipation of the MAX13037/MAX13038 (see the
Applications
Information
section).
Switch Outputs (DO0, DO1)
DO0 and DO1 are direct level-shifted outputs of the
switch inputs IN0 and IN1 when the WEND bit of the
command register is cleared and when operating in
normal mode. When configured as direct inputs, the
wetting currents and sensing resistors are disabled on
IN0 and IN1. DO0 and DO1 are three-stated when the
WEND bit is set or when operating in scan mode.
When programmed as direct inputs, the status of IN0
and IN1 are not reflected in the status register and
interrupts are not allowed on these inputs.
Interrupt Output (
INT
)
INT is an active-low, open-drain output that asserts
when any of the switch inputs change state, as long as
the particular input is enabled for interrupts (set by
clearing P7–P0 in the command register). INT also
asserts when the first watchdog timeout period elapses
(t
WD1
). A pullup resistor to VLOis needed on INT. INT is
cleared when CS is driven low for a read/write operation.
The INT output still asserts when V
LO
is disabled pro-
vided that it is pulled up to a different supply voltage.
Thermal Protection (OT)
The MAX13037/MAX13038 feature a two-level thermal
protection strategy that prevents the device from being
damaged by overheating. At the initial warning temperature of +135°C (typ), only wetting currents are disabled. The MAX13037/MAX13038 return to normal
operation after the internal temperature decreases
below +120°C (typ). This protection feature is disabled
when WEN = 0 or when all inputs are open. At the second thermal warning temperature of +170°C (typ), the
LDO is shut down. Because a µC is often supplied by
the LDO, an overheating event caused by excessive
power dissipation related to I/O wetting currents is normally resolved without affecting the µC status.
An open-drain, active-low output (OT) asserts low when
the internal temperature of the device rises above the
thermal warning threshold. OT is immediately cleared
when the CS input is driven low for read/write operations, regardless of whether the temperature is above
the threshold, or not. The overtemperature status of the
MAX13037/MAX13038 can also be monitored by reading the OT bit in the status register. The OT bit is set
when the internal temperature rises above the temperature threshold, and it is cleared when the temperature
falls below the temperature hysteresis level. This allows
a µC to monitor the overtemperature status, even if the
OT output has been cleared. See Figure 6 for an example timing diagram of the overtemperature alerts.
If desired, the OT and INT outputs can be connected
to the same µC GPIO in a wired-OR configuration to
save a µC pin. The OT output still asserts when VLis
absent provided that it is pulled up to a different supply voltage.
Figure 6. Example Timing Diagram of the Overtemperature Alerts
The MAX13037/MAX13038 operate as a Serial Peripheral
Interface (SPI) slave devices. An SPI master accesses
the MAX13037/MAX13038 by reading from a status register and writing to a command register. Both registers
are 16 bits long and are accessed most significant bit
(MSB) first.
On the falling edge of CS, the status register is immediately loaded to an internal shift register and the contents are transferred out of the SDO output on the rising
edge of CLK. Serial data on the SDI input is latched
into the shift register on the falling edge of CLK. On the
rising edge of CS, the contents of the shift register are
copied to the command register (see Figure 7). The
status and command registers are 16 bits wide, so it is
essential to clock a total of 16 bits while CS is low for
the input and output data to be valid. When CS is high,
the SDO output is high-impedance and any transitions
on CLK and SDI are ignored. The INT and OT flags are
cleared on the CS falling edge. Input status changes
occurring during the CS reading/writing operation are
allowed. If a switch status changes when CS is low, the
interrupt is asserted as usual. This allows the part to be
used even if VLOis disabled provided that the INT output is pulled up to another supply voltage.
Status Register
The status register contains the status of the switches
connected to IN7 through IN0 and it also contains an
overtemperature warning bit (see Table 1). The status
register is accessed through an SPI-compatible master.
Notes:
Bits 15–8: Switch 7 Through 0 Status (SW7–SW0)
SW7 through SW0 reflect the status of the switches
connected to inputs IN7 through IN0, respectively.
Open switches are returned as a [0] and closed switches are returned as a [1].
Bit 7: Overtemperature Warning (OT)
The OT bit returns a [1] when the internal temperature of
the MAX13037/MAX13038 is above the temperature
warning threshold of +135°C (typ). The OT bit returns a
[0] when the MAX13037/MAX13038 is either below the
temperature threshold, or it has fallen below the temperature hysteresis level following an overtemperature event.
Bits 6–0: Unused
Bits 6 through 0 are unused and should be ignored.
Command Register
The command register is used to configure the
MAX13037/MAX13038 for various modes of operation
and is accessed by an SPI-compatible master (see
Table 2). The power-on reset (POR) value of the command register is 0x00.
Figure 7. SPI Read/Write Example
Table 1. Status Register
Table 2. Command Register
STATUS REGISTER
IS COPIED TO
SHIFT REGISTER
CS
15
CLK
SDI
SDO
* = UNUSED.
14131211109876543210
WTOFF
SC2SC1SC0 WEN WEND M1M0P7P6P5P4P3P2P1P0
SW7 SW6 SW5 SW4 SW3 SW2 SW1 SW0OT*******
SHIFT REGISTER IS
COPIED TO COMMAND
REGISTER
BIT 151413121110 9 8 7 6 5 4 3 2 1 0
NAMESW7SW6SW5SW4SW3SW2SW1SW0OT———————
BIT1514131211109876543210
NAMEWTOFFSC2SC1SC0WEN WENDM1M0P7P6P5P4P3P2P1P0
POR0 0000 0 0000000000
MAX13037/MAX13038
Automotive Contact Monitor and
Level Shifters with LDO Regulator
Set the WTOFF bit to configure the wetting currents as
continuous on closed switches. Clear the WTOFF bit to
configure the wetting current as a pulse where the wetting current is turned on for a set duration of 20ms after
a switch closes (and the debounce is timed out). After
20ms elapses, the wetting current is turned off. Either
wetting current mode is only applicable to switches that
have wetting currents enabled (see WEN and WEND
bits). In scan mode, the wetting currents are on for the
polling time of 250µs (typ) and are pulsed at the programmed scanning period. When WTOFF is set, the
wetting current continuously pulses at the programmed
scanning period. When WTOFF is cleared, the wetting
current pulses at the programmed scanning period, but
turns off after 20ms elapses.
Bits 14, 13, 12: Scanning Period (SC2, SC1, SC0)
The SC2, SC1, and SC0 bits are used to program the
scanning period as depicted in Table 3. Switch inputs
are simultaneously polled for a finite duration of 250µs
(typ), and polling occurs at a period selected through
the SC2, SC1, and SC0 inputs. Figure 8 shows a timing
diagram of switch scanning and sampling. When the
inputs are not being polled, the sense resistors are disconnected, reducing the current consumption caused
from polling closed switches. For a continuous scanning
period ([SC2:SC1:SC0] = [1:1:1] or [1:1:0]), the switch
inputs are constantly being monitored and the sense
resistors are always connected. The state [SC2:SC1:SC0]
= [1:1:0] also disables adjustable hysteresis (normally set
by R
HYST
) and fixes hysteresis at 0.166 x V
BATREF
. When
adjustable hysteresis is not needed, it is recommended to
disable this feature to reduce power consumption.
Bit 11: Global Wetting Current Enable (WEN)
The WEN bit is a global enable for the wetting currents
on all the channels. Set the WEN bit to enable wetting
currents on all channels and clear the WEN bit to disable wetting currents. Even with wetting currents globally enabled, the wetting currents and sense resistors
on IN0 and IN1 can still be turned off with the WEND bit
(see Table 4).
Bit 10: IN0 and IN1 Wetting Current Enable (WEND)
The WEND bit is used to turn on wetting currents and
sense resistors on inputs IN0 and IN1. Set the WEND
bit to enable wetting currents on IN0 and IN1 and clear
the WEND bit to turn off the wetting current and sense
resistors on IN0 and IN1. When the wetting currents
and sense resistors are disabled (WEND = 0), IN0 and
IN1 are configured as direct inputs with level-shifted
outputs on DO0 and D01. DO0 and DO1 can only be
used as level-shifted outputs in normal mode and are
three-stated in scan mode (see the
Scan Mode
section). Note that both the WEN and WEND bits need to
be set for wetting currents to be enabled on IN0 and
Table 3. Programmable Scanning Period
Figure 8. Switch Sampling in Scan Mode
Table 4. Truth Table for WEN and WEND
t
SC2SC1SC0SCANNING PERIOD (ms)
00064
00132
01016
0118
1004
1012
110
111Continuous
Continuous/adjustable
hysteresis off
GND-CONNECTED
SWITCH INPUT
SCAN
SWITCHES ARE
POLLED FOR 250μs
t
SCAN-P
INT
SWITCH
CLOSES
WENWEND
00OffOffOffOn
01OffOnOffOn
10OffOffOnOn
11OnOnOnOn
WETTING CURRENT
(IN0, IN1)
16kΩ SENSE RESISTOR
(IN0, IN1)
WETTING CURRENT
(IN2–IN7)
16kΩ SENSE RESISTOR
SWITCH
DEBOUNCE
STARTS
t
DEB
STATUS REGISTERS AND
INT ARE UPDATED
AFTER t
(IN2–IN7)
DEB
IN1 (see Table 4). The DO0 and DO1 outputs are threestated when WEND = 1. When programmed as direct
inputs (WEND = 0), any input changes on IN0 and IN1
are not reflected by the status register.
Bits 9 and 8: Switch Configuration for IN7–IN4 (M1, M0)
The M1 and M0 bits set the switch configuration in
groups of two for IN7 through IN4 (see Table 5). Set M1
to configure IN7 and IN6 for battery-connected switches
and clear M1 for ground-connected switches. Set M0 to
configure IN5 and IN4 for battery-connected switches
and clear M0 for ground-connected switches.
Bits 7–0: Interrupt Enable for IN7–IN0 (P7–P0)
The P7 through P0 bits allow independent control of
whether inputs IN7 through IN0 generate an interrupt
(INT). Set any bit to disable interrupts on the corre-
sponding input and clear the bit to enable interrupts on
the corresponding channel. An interrupt is asserted
when any input configured for interrupts changes state.
IN0 and IN1 do not generate an interrupt when configured as direct inputs (WEND = 0).
Operating Modes
The MAX13037/MAX13038 feature three modes of operation: normal mode, scan mode, and shutdown mode.
Normal mode is entered when the scanning period bits
in the command register are configured for continuous
scanning ([SC2:SC1:SC0] = [1:1:1] or [1:1:0]). Scan
mode is entered when the scanning period bits are set
for a periodic scanning time as shown in Table 3.
Shutdown mode is entered by driving the shutdown
input (SD) low. The default mode after power-up is scan
mode (when SD = high) with a scan period of 64ms.
Normal Mode (Continuous Scanning)
In normal mode, the input sense resistors are always
connected to the switch inputs to detect any input status
change (except IN0 and IN1 when WEND = [0]). Wetting
currents are enabled according to the WEN, WEND, and
WTOFF bits in the command register. If adjustable hysteresis is not required, this feature can be disabled to
reduce power consumption (see the
Typical Operating
Characteristics
) by setting the scanning period bits in the
command register to ([SC2:SC1:SC0] = [1:1:0]). The
hysteresis is set to 0.166 x V
BATREF
when adjustable
hysteresis is disabled.
Scan Mode
In scan mode, each sense resistor is connected for a
finite duration of 250µs (typ) and is repeated at a period
according to the scanning period bits SC2, SC1, and SC0
(see Table 3). All input resistors are connected simultaneously and the inputs are polled at the same time. When all
external switches are open and the scanning period is set
to 64ms the scanning mode reduces current consumption to typically 28µA (LDO on) and 17µA (LDO off).
Wetting currents (if enabled) are applied to closed
switches during the polling time of 250µs (typ) and are
pulsed at the programmed scanning period. When
WTOFF is set, the wetting current continuously pulses at
the programmed scanning period. When WTOFF is
cleared, the wetting current pulses at the programmed
scanning period, but turns off after 20ms elapses. Inputs
IN0 and IN1 cannot be used as direct inputs (WEND = 0)
in scan mode. When configured as direct inputs in scan
mode, the outputs DO0 and DO1 are high impedance.
The quiescent current for a given scan mode can be calculated by the following formula (LDO off):
Where V
BAT
= SD = +14V, I
BAT
is the BAT current
expressed in microamps and t
SCAN_P
is the scanning
period expressed in milliseconds.
Shutdown Mode
In shutdown mode, the LDO is disabled, all switch
inputs are high impedance and the external switches
are no longer monitored, reducing current consumption
on BAT to 2.85µA (typ). The MAX13037/MAX13038
reset upon entering shutdown mode and the contents
of the command register are lost. Exit shutdown mode
by bringing the voltage on SD above +2.4V. The SD
input is compatible with voltages up to V
BAT
. The
MAX13037/MAX13038 take 200µs (typ) to exit shutdown
Table 5. Switch Configuration Controlled by M1 and M0
M1M0
00GroundGroundGround
01GroundBatteryGround
10BatteryGroundGround
11BatteryBatteryGround
IN7 AND IN6 SWITCH
CONFIGURATION
IN5 AND IN4 SWITCH
CONFIGURATION
I
BAT( A)
=×+
161
μ
⎛
⎜
⎝
IN3–IN0 SWITCH
CONFIGURATION
⎞
1
t
SCAN P(ms)
⎟
⎠
_
MAX13037/MAX13038
at which point the command register is restored to its
power-up default (0x00) and the MAX13037/
MAX13038 enter scan mode. Note that SD is compatible with both logic and BAT voltage levels. Having SD
compatible to V
BAT
allows the MAX13037/MAX13038 to
retain the settings in the command register as well as
input monitoring even when VLOis disabled, provided
that SD = V
BAT
.
Applications Information
Automotive Considerations
Reverse-Battery Tolerance
The BATREF and IN0–IN7 inputs can withstand voltages
down to -45V without damage so that reverse battery is
not an issue. The BAT input should be protected with a
reverse-battery diode as shown in the
Typical Application
Circuit
. The shutdown (SD) and REGON inputs can be
controlled from a battery-level source, but should be protected against reverse battery in the application.
Power Dissipation
Wetting currents and the LDO output current can result in
overheating the MAX13037/MAX13038. At the early thermal warning threshold of +135°C (typ), wetting currents
are disabled. This allows the LDO output to remain
enabled if overheating is caused by the wetting currents.
At temperatures above +170°C, the LDO is also turned
off to avoid damage to the device.
It is important to consider the effects of wetting currents
on the power dissipated by the MAX13037/MAX13038.
For example, assume all inputs are configured for a
continuous wetting current of 25mA, all external switches have an on-resistance of 1Ω and the battery voltage
is +16V. If all switches are simultaneously closed, the
corresponding power dissipated due to wetting currents
only is (16V - (25mA x 1Ω)) x 25mA x 8 = 3.12W, which
is higher than the absolute maximum power dissipation
of 2857mW at +70°C.
The LDO is a second source of power dissipation. For
example, if VLO= +3.3V, ILO= 100mA and V
BAT
=
+16V, the power dissipated by the LDO is (16V - 3.3V)
+ (0.1) = 1.27W. Both the LDO and wetting currents
should be taken into account for correct use of the
MAX13037/MAX13038.
ESD Protection
As with all Maxim devices, ESD-protection structures
are incorporated on all pins to protect against electrostatic discharges encountered during handling and
assembly. The IN7–IN0 inputs have extra protection
against static electricity. Maxim’s engineers have
developed state-of-the-art structures to protect these
pins against ESD of ±8kV without damage.
Human Body Model
The MAX13037/MAX13038 IN7–IN0 pins are characterized for ±8kV ESD protection using the Human
Body Model. Figure 7a shows the Human Body Model,
and Figure 7b shows the current waveform it generates when discharged into a low impedance. This
model consists of a 100pF capacitor charged to the
ESD voltage of interest, which is then discharged into
the device through a 1.5kΩ resistor.
Automotive Contact Monitor and
Level Shifters with LDO Regulator
(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information
go to www.maxim-ic.com/packages
Automotive Contact Monitor and
Level Shifters with LDO Regulator
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
22
____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600
(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information
go to www.maxim-ic.com/packages
.)
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.