The MAX13362 is a 24-channel automotive contact monitor designed as an interface between mechanical
switches and low-voltage processors or other logic circuits. The IC operates over a voltage range of 5.5V to
28V, and withstands voltages up to 40V. It protects lowvoltage circuitry from high voltages and reverse battery
conditions. The MAX13362’s low-current operation under
all operating conditions makes it suitable for use in electronic control units (ECUs) that are connected directly to
the automotive battery. It has an adjustable scan mode
that significantly reduces the current drawn in key-off.
The MAX13362 features an SPI™ interface to monitor
the switch status and set the device configuration.
Multiple MAX13362s can be cascaded to support any
multiple of 24 switches.
The MAX13362 is available in a 6mm x 6mm, 40-pin
thin QFN package and operates over the -40°C to
+125°C temperature range.
= 5V, VVS= 14V, TA= -40°C to +125°C, unless otherwise noted. Typical values are at TA=+25°C.)
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.
VDD, CLK, SDI, CS to GND ......................................-0.3V to +6V
VS, SD, INT to GND................................................-0.3V to +40V
IN0–IN23 to GND.....................................................-15V to +27V
SDO to GND...............................................-0.3V to (V
DD
+ 0.3V)
ESD Protection, All Pins (HBM)............................................±2kV
ESD Protection on Pins IN0–IN23 to IEC 61000-4-2 Specification
3IN17Switch Monitor Input Channel 17. Connect IN17 to a ground-connected switch.
4IN18Switch Monitor Input Channel 18. Connect IN18 to a ground-connected switch.
5IN19Switch Monitor Input Channel 19. Connect IN19 to a ground-connected switch.
6IN20Switch Monitor Input Channel 20. Connect IN20 to a ground-connected switch.
7IN21Switch Monitor Input Channel 21. Connect IN21 to a ground-connected switch.
8IN22Switch Monitor Input Channel 22. Connect IN22 to a ground-connected switch.
9IN23
10INT
12CLKSPI Serial Clock Input
13SDO
14CS
15SDI
16, 18GNDGround. Pins 16 and 18 must be connected to ground.
17V
N.C.No Connection. Not internally connected.
DD
MAX13362 toc10
SWITCH OPEN TO CLOSE
SWITCH CLOSE TO OPEN
121713161410
VS VOLTAGE (V)
10V
V
IN
0V
V
INT
0V
2ms/div
Switch Monitor Input Channel 23. Connect IN23 to a battery-connected or ground-connected switch.
When used for a battery-connected switch, add a 100Ω series protection resistor to the input.
Inter r up t Outp ut. INT i s an op en- d r ai n outp ut that asser ts l ow w hen one or m or e of the i np uts ( IN 0–IN 23)
chang e state and ar e enab l ed for i nter r up ts, or w hen the over tem p er atur e thr eshol d i s exceed ed .
SPI Serial Data Output. SPI data is output on SDO on the rising edges of CLK while CS is held low.
SDO is high impedance when CS is high. Connect SDO to a microcontroller data input or to a
succeeding device in a daisy chain.
SPI Chip-Select Input. Drive CS low to enable clocking of data into and out of the IC. SPI data is
latched into the device on the rising edge of CS.
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 50kΩ pulldown resistor. Connect SDI to the SDO of a
preceding device in a daisy chain or to the microcontroller data output.
Logic Supply Voltage. Connect VDD to a 3.3V or 5V logic supply. Bypass VDD to GND with at least a
Supply Voltage Input. VS should be protected from reverse battery using a series diode. Bypass VS to
19, 20VS
21SD
22IN0
23IN1
24IN2
25IN3
26IN4Switch Monitor Input Channel 4. Connect IN4 to a ground-connected switch.
27IN5Switch Monitor Input Channel 5. Connect IN5 to a ground-connected switch.
28IN6Switch Monitor Input Channel 6. Connect IN6 to a ground-connected switch.
31IN7Switch Monitor Input Channel 7. Connect IN7 to a ground-connected switch.
32IN8Switch Monitor Input Channel 8. Connect IN8 to a ground-connected switch.
33IN9Switch Monitor Input Channel 9. Connect IN9 to a ground-connected switch.
34IN10Switch Monitor Input Channel 10. Connect IN10 to a ground-connected switch.
35IN11Switch Monitor Input Channel 11. Connect IN11 to a ground-connected switch.
36IN12Switch Monitor Input Channel 12. Connect IN12 to a ground-connected switch.
37IN13Switch Monitor Input Channel 13. Connect IN13 to a ground-connected switch.
38IN14Switch Monitor Input Channel 14. Connect IN14 to a ground-connected switch.
39IN15Switch Monitor Input Channel 15. Connect IN15 to a ground-connected switch.
40IN16Switch Monitor Input Channel 16. Connect IN16 to a ground-connected switch.
—EPExposed Pad. Connect EP to GND for enhanced thermal performance.
GND with a 0.1µF ceramic capacitor placed as close as possible to VS. In addition, bypass VS with a
47µF or greater capacitor.
Shutdown Input. Drive SD low to place the IC into shutdown mode. Drive SD high for normal operation.
SD is battery-voltage compatible.
Switch Monitor Input Channel 0. Connect IN0 to a battery-connected or ground-connected switch.
When used for a battery-connected switch, add a 100Ω series protection resistor to the input.
Switch Monitor Input Channel 1. Connect IN1 to a battery-connected or ground-connected switch.
When used for a battery-connected switch, add a 100Ω series protection resistor to the input.
Switch Monitor Input Channel 2. Connect IN2 to a battery-connected or ground-connected switch.
When used for a battery-connected switch, add a 100Ω series protection resistor to the input.
Switch Monitor Input Channel 3. Connect IN3 to a battery-connected or ground-connected switch.
When used for a battery-connected switch, add a 100Ω series protection resistor to the input.
The MAX13362 is a 24-channel automotive contact
monitor designed as an interface between mechanical
switches and low-voltage microcontrollers or other logic
circuits. It features an SPI interface to monitor individual
switch inputs and to configure interrupt capability, wetting current, switch configuration (battery-connected or
ground-connected), polling time and polling active
time. Any switch status change will cause an interrupt
signal if the switch is interrupt enabled. The MAX13362
has three modes of operation: continuous mode, polling
mode, and shutdown mode.
VDDand VS
VDDis the power-supply input for the logic input/
output circuitry. Connect VDDto a 3V to 5.5V logic-level
supply. Bypass V
DD
to GND with at least a 0.1µF
capacitor placed as close as possible to V
DD
.
VS is the main power-supply input. Bypass VS to GND
with a 0.1µF ceramic capacitor placed as close as possible to VS. In addition, bypass VS with a 47µF or
greater capacitor.
Mechanical Switch Inputs (IN0–IN23)
IN0–IN23 are the inputs for remote mechanical switches. The switch status is indicated by the S0–S23 bits in
the status register, and each switch input can be programmed to assert an interrupt (INT) by writing to the
IE0–IE23 bits in the command register. All switch inputs
are interrupt disabled upon power-up.
The IN4–IN22 inputs are intended for ground-connected switches. The IN0–IN3 and IN23 inputs can be programmed for either ground-connected switches or
battery-connected switches by writing to the LH0–LH3
and LH23 bits (see Table 2). The default configuration
of the IN0–IN3 and IN23 inputs after power-up is for
ground-connected switches.
Wetting Current
The MAX13362 applies a programmable wetting current
to any closed switch to clean switch contacts that are
exposed to adverse conditions. The wetting current for
each switch can be set to 0mA, 5mA, 10mA, or 15mA
by the W_.0 and W_.1 data bits in the command registers (see Table 5) by means of an SPI data transaction.
When using wetting current, special care must be
taken to avoid exceeding the maximum power dissipation of the MAX13362 (see the
Applications Information
section). Disabling the wetting current or limiting the
active-wetting current time reduces power consumption. The default state upon power-up is with wetting
current disabled.
Interrupt Output (
INT
)
INT is an active-low, open-drain output that asserts low
when any of the switch inputs change state and is
enabled for interrupts, or when the overtemperature
threshold is exceeded. An external pullup resistor to
VDDis needed on INT. INT is cleared when CS is driven
low for a read/write operation. However, in polling mode,
any switch state change or overtemperature change
which occurs during an SPI transaction is stored and
causes an additional interrupt after the SPI transaction is
over and CS goes high (shown in Figure 2).
If VDDis absent, the INT output is functional provided
that it is pulled up to a different supply voltage.
Figure 2. Switch State Change During the SPI transaction
CS
CLK
INT
SWITCH STATUS CHANGE
NEW INTERRUPT
MAX13362
Serial Peripheral Interface
(
CS
, SDO, SDI, CLK)
The MAX13362 operates as a serial peripheral interface
(SPI) slave device. An SPI master accesses and programs the MAX13362 by reading/writing the control
registers. The control registers are 32 bits wide, have 2
command bits (or register addresses) and 30 data bits
(see Table 1). Figure 3 shows the read/write sequence
through SPI. The SPI logic counts the number of bits
clocked into the IC (using a modulo-32 counter so that
daisy chaining is possible) and enables data latching
only if exactly 32 bits (or an integer multiple thereof)
have been clocked in.
Status Register
The status register contains the status of the switches
connected to IN0–IN23. The status register also contains an overtemperature warning bit, a power-on-reset
bit and a device type bit (see Table 1). The status register is accessed by the SPI-compatible interface.
Power-on-reset bit. It indicates whether the IC has had a power-on-reset since the last SPI read. 0 = device has
been reset. RST is set to 1 on the rising edge of CS.
Command Register
Three 32-bit command registers are used to configure
the MAX13362 for various modes of operation and are
accessed by the SPI-compatible interface (see Table 2).
LH_: Switch Configuration for IN0–IN3 and IN23
The LH0–LH3 and LH23 bits set the switch configuration
for IN0–IN3 and IN23, respectively. Set LH_ to 0 to configure the input channel to ground connected. Set LH_
to1 to configure the input channel to battery connected.
The default configuration after power-on is LH_ = 0,
ground connected.
P0–P3: Polling Time
P0–P3 are used to set the polling time as shown in Table 3.
PA0–PA2: Polling Active Time
PA0–PA2 are used to set the polling active time as
shown in Table 4.
The IE_ bit programs the switch input channel, IN_, to
be interrupt-enabled or interrupt-disabled (0 = interrupt
disabled, 1 = interrupt enabled). The default value after
power-on is 0.
W_.0 and W_.1: Wetting Current
W_.0 and W_.1 bits set the corresponding switch
channel-wetting current as shown in Table 5.
LP: Low Quiescent Current Bit
In polling mode, when LP is set to 0, the IC is operating
with the lowest quiescent current. The channels that are
not enabled to interrupt have their wetting current disabled and are not monitored. The first pulse of wetting
current after the switch is closed and sampled is 5mA
unless the wetting current for that channel is set to
0mA. The default value of LP after power-on is 0. When
LP is 1, all channels are monitored and the wetting current for each channel is set to the value determined by
W_.0 and W_.1. If the MAX13362 is in continuous
mode, LP is ignored.
Operating Modes
The MAX13362 features three modes of operation: continuous mode, polling mode, and shutdown mode. In
continuous mode, the wetting currents (if enabled) are
continuously applied to the closed switches. In polling
mode, the wetting currents are applied to the closed
switches for a preset duration to reduce the power consumption. In shutdown mode, all switch inputs are high
impedance and all circuitry is shutdown.
Continuous Mode Operation (P0–P3 = 0)
In continuous mode, reading of the switch status is initiated by a falling edge on CS. The microcontroller initiates a low pulse on CS to update the MAX13362 switch
status register. If INT remains high, no action needs be
taken by the microcontroller. If INT goes low, the microcontroller may perform a read operation to read the
updated switch status. On the rising edge of CS, INT is
updated. To get correct data, the microcontroller must
wait 10µs before initiating a switch status read operation. (See Figure 4.)
Polling-Mode Operation
In polling mode (see Figure 5), each switch input is
sampled for a programmable polling active time set by
the PA0–PA2 bits between 64µs and 4ms (see Table 4).
Sampling is repeated at a period set by the P0–P3 bits
(from 4ms to continuous, see Table 3). All switch inputs
are sampled simultaneously at the end of the polling
active time. Wetting currents (if enabled) are applied to
closed switches during the polling active time.
Therefore, the polling mode reduces the current consumption from the VS power supply to some value
dependent on the polling time chosen.
Any switch position change (if the switch is interruptenabled) is signaled through the active-low open-drain
INT output. The INT output is cleared when CS goes
low.
Shutdown Mode
In shutdown mode, all switch inputs are high impedance and the external switches are no longer monitored, reducing current consumption on VS to 6µA
(typ). The IC resets upon entering shutdown mode and
the contents of the command registers are lost.
Therefore, any setting other than power-on-reset
defaults needs to be reprogrammed after exiting from
the shutdown mode.
Applications Information
Overtemperature Protection
If the IC junction temperature exceeds +165°C, an
interrupt signal is generated and the wetting currents
are disabled to reduce the on-chip power dissipation.
During an overtemperature event, the last switch status
is retained in internal memory and the switch status is
not updated. The interrupt output is cleared when CS
goes high, but the overtemperature bit T in the output
word remains for as long as the overtemperature condition persists. When the junction temperature drops by
15°C, the wetting currents are re-enabled and there is a
1ms blanking time before the switches can be polled.
Reverse-Battery Tolerance
The IN0–IN23 switch inputs withstand up to -15V DC
voltage without damage. A reverse-battery diode is
needed to protect VS as shown in the
Typical
Application Circuit
. SD can be controlled from a bat-
tery-level source but should be protected against
reverse battery in the application.
Wetting Current and Power Dissipation
The maximum power dissipation happens when all
switch inputs configured with 15mA continuous wetting
current are all closed. Assuming the battery voltage is
14V, the corresponding power dissipated by the IC is
24 x 14V x 15mA = 5040mW. This exceeds the
absolute maximum power dissipation of 2963mW. In
polling mode, the wetting currents are pulsed at the
programmed polling time to reduce the total power dissipated in the IC.
ISO 7637 Pulse Immunity
VS, SD, and IN0–IN23 are potentially exposed to ISO
7637 pulses. Bypass VS with a 0.1µF and a 47µF
capacitor. The VS and SD voltage must be limited
below 40V during load dump. Bypass IN0–IN23 with at
least 0.047µF capacitors at the ECU connector. When
IN0–IN3 or IN23 inputs are used with battery-connected
switches, a 100Ω series resistor is needed. These
external components allow VS, SD, and IN0–IN23 to
withstand ISO 7637 pulses in the application circuit.
Mechanical Switch Characteristics
The MAX13362 is designed to operate with switches
that have the following characteristics:
1) Minimum resistance value with switch open (due to
leakage): 10kΩ.
2) Maximum resistance value with switch closed:
100Ω.
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.
14
____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600