CS4172
CS4172
Single Air-Core Gauge Driver
Description
Features
AR
CH
IV
FO
E
R
N
RE
CO
MM
EN
DE
D
The CS4172 is a monolithic BiCMOS
integrated circuit used to translate a
digital 10-bit word from a micropro-
cessor/microcontroller to complemen-
tary DC outputs. The DC outputs
drive an air-core meter commonly
used in vehicle instrument panels. The
10 bits of data are used to linearly con-
trol the quadrature coils of the meter
directly with a 0.35° resolution and
±1.0° accuracy over the full 360° range
of the gauge. The interface from the
microcontroller is by a Serial Periph-
eral Interface (SPI) compatible serial
connection using up to a 2MHz shift
clock rate.
The digital code, which is directly pro-
portional to the desired gauge pointer
deflection, is shifted into a DAC and
multiplexer. These two blocks provide
a tangential conversion function to
change the digital data into the appro-
priate DC coil voltage for the angle
demanded. The tangential algorithm
creates approximately 40% more
torque in the meter movement than
does a sin-cos algorithm at 45°, 135°,
EW
225°, and 315° angles. This increased
torque reduces the error due to pointer
droop at these critical angles.
Each output buffer is capable of sup-
plying up to 80mA per coil and are
controlled by a common enable pin.
When OE is low the output buffers are
turned off but the logic portion of the
chip remains powered and continues
to operate normally.
The Serial Gauge Driver is self-protect-
ed against output short circuit condi-
tions. The output drivers are disabled
anytime the on-chip protection circuit-
ry detects a short circuit condition. The
outputs remain off until a falling edge
is presented on CS. If the short circuit
is still present the output drivers auto-
matically disable themselves again. A
thermal protection circuit limits the
junction temperature to approximately
160°C for conditions of high supply
voltage and high ambient temperature.
The status pin (ST) reflects the state of
the outputs and is low whenever the
outputs are disabled.
DE
SI
GN
s
Serial Input Bus
s
2MHz Operating
Frequency
s
Tangential Drive
Algorithm
s
80mA Drive Circuits
s
0.5° Accuracy (Typ.)
s
Power-On-Reset
s
Protection Features
Output Short Circuit
Overtemperature
Package Options
16 Lead PDIP
SIN
-
SIN
+
Gnd
V
BB
SO
1
COS
+
COS
-
Gnd
Gnd
NC
ST
CS
SCLK
NO
T
Block Diagram
V
BB
V
CC
SI
V
CC
OE
POR
LOGIC
DE
VI
CE
SI
SIN
+
V
TOP
D0 – D6
SCLK
CS
Serial
to
Parallel
Shift
Register
16 Lead SO Wide
Internally Fused Leads
SIN
-
SIN
+
V
BB
Gnd
1
7 Bit
DAC
V
VAR
V
BAT
MUX
SIN
–
COS
+
COS
OC
–
COS
+
COS
-
SO
Gnd
Gnd
ST
CS
SCLK
SO
D7 – D9
R FAULT S
Latch S
ST
Output
Amplifiers
Gnd
SI
V
CC
OE
POR
OE
Gnd
ON Semiconductor
2000 South County Trail, East Greenwich, RI 02818
Tel: (401)885–3600 Fax: (401)885–5786
N. American Technical Support: 800-282-9855
Web Site: www.cherry–semi.com
December, 2001 - Rev. 3
1
CS4172
Absolute Maximum Ratings
Supply Voltage
V
BB
..................................................................................................................................................................
−1.0V
to 15.0V
V
CC
....................................................................................................................................................................
−1.0V
to 6.0V
Digital Inputs ............................................................................................................................................................
−1.0V
to 6.0V
Ground Potential Difference (|AGnd-DGnd|)................................................................................................................... 0.5V
Steady State Output Current ........................................................................................................................................... ±100mA
Forced Injection Current (Inputs and Supply)................................................................................................................ ±10mA
Operating Junction Temperature (T
J
) ................................................................................................................................. 150°C
Storage Temperature Range ................................................................................................................................
−65°C
to 150°C
Lead Temperature Soldering
Wave Solder (through hole styles only) .................................................................................... 10 sec. max, 260°C peak
Reflow (SMD styles only) ..................................................................................... 60 sec. max above 183°C, 230°C peak
ESD Susceptibility (Human Body Model)............................................................................................................................. 2kV
Electrical Characteristics:
−40°C ≤
T
A
≤
105°C; 7.5V
≤
V
BB
≤
14V; 4.5V
≤
V
CC
≤
5.5V; unless otherwise specified.
PARAMETER
TEST CONDITIONS
MIN
TYP
MAX
UNIT
s
Supply Voltages and Currents
Output disabled (OE = 0V)
V
BB
Quiescent Current
[R
COS
, R
SIN
= R
L(MIN)
] @ 45°
(code = X’080) V
BB
= 14V
V
CC
Quiescent Current
OE = high, V
BB
= 0V
SCLK = 2.0MHz
s
Digital Inputs and Outputs
Output High Voltage
Output Low Voltage
Output High Current
Input High Voltage
Input Low Voltage
Input High Current
Input Low Current
s
Analog Outputs
Output Function Accuracy
Output Shutdown Current,
Source
Output Shutdown Current,
Sink
Output Shutdown Current,
Source
Output Shutdown Current,
Sink
Coil Drive Output Voltage
Minimum Load Resistance
V
BB
= 14.0V
V
BB
= 14.0V
V
BB
= 7.5V
V
BB
= 7.5V
SO, I
OH
= 0.8mA
SO, I
OL
=0.8mA
ST, I
OL
= 2.5mA
ST, V
CC
= 5.0V
CS, SCLK, SI, OE
CS, SCLK, SI, OE
CS, SCLK, SI, OE; V
IN
= 0.7
×
V
CC
CS, SCLK, SI, OE; V
IN
= 0.3
×
V
CC
0.7
×
V
CC
V
CC
−
0.8
1
5
175
mA
mA
1
mA
V
0.4
0.8
25
0.3
×
V
CC
1
1
V
V
µA
V
V
µA
µA
−1.2
70
70
43
43
0.748
×
V
BB
T
A
= 105°C
T
A
= 25°C
T
A
=
−40°C
229
171
150
+1.2
250
250
250
250
deg
mA
mA
mA
mA
V
Ω
Ω
Ω
2
CS4172
Electrical Characteristics:
−40°C ≤
T
A
≤
105°C; 7.5V
≤
V
BB
≤
14V; 4.5V
≤
V
CC
≤
5.5V; unless otherwise specified.
PARAMETER
TEST CONDITIONS
MIN
TYP
MAX
UNIT
Shift Clock Frequency
SCLK High Time
SCLK Low Time
SO Rise Time
SO Fall Time
SO Delay Time
SI Setup Time
SI Hold Time
CS Setup Time
CS Hold Time
175
175
0.75V to V
CC
−
1.2V; C
L
= 90pF
0.75V to V
CC
−
1.2V; C
L
= 90pF
C
L
= 90pF
75
75
0
75
2.0
MHz
ns
ns
ns
ns
ns
ns
ns
ns
ns
150
150
150
Package Pin Description
PACKAGE PIN#
PIN SYMBOL
FUNCTION
16 Lead SO Wide
1
2
3
4,5,12,13
6
7
16 Lead PDIP
1
2
4
3,13,14
6
7
SIN
−
SIN
+
V
BB
Gnd
SI
V
CC
Negative output for SINE coil.
Positive output for SINE coil.
Analog supply. Nominally 13.5V.
Ground.
Serial data input. Data present at the rising edge of the
clock signal is shifted into the internal shift register.
5V logic supply. The internal registers and latches are
reset by a POR generated by the rising edge of the voltage
on this pin.
Controls the state of the output buffers. A logic low on
this pin turns them off.
Serial clock for shifting in/out of data. Rising edge shifts
data on SI into the shift register and the falling edge
changes the data on SO.
When high allows data at SI to be shifted into part with
the rising edges of SCLK. The falling edge transfers the
shift register contents into the DAC and multiplexer to
update the output buffers. The falling edge also re-enables
the output drivers if they have been disabled by a fault.
STATUS reflects the state of the outputs and is low any-
time the outputs are disabled, either by OE or the internal
protection circuitry. Requires external pull-up resistor.
Serial data output. Existing 10-bit data is shifted out when
new data is shifted in. Allows cascading of multiple
devices on common serial port.
Negative output for COSINE coil.
Positive output for COSINE coil.
No connection.
8
9
8
9
OE
SCLK
10
10
CS
11
11
ST
14
5
SO
15
16
15
16
12
COS
−
COS
+
NC
3
CS4172
Applications Information
Theory of Operation
Quadrant II
θ
= 180° – Tan
−1
The SACD is for interfacing between a microcontroller or
microprocessor and air-core meter movements commonly
used in automotive vehicles for speedometers and
tachometers. These movements are built using 2 coils
placed at a 90° orientation to each other. A magnetized
disc floats in the middle of the coils and responds to the
magnetic field generated by each coil. The disc has a shaft
attached to it that protrudes out of the assembly. A point-
er indicator is attached to this shaft and in conjunction
with a separate printed scale displays the vehicle’s speed
or the engine’s speed.
The disc (and pointer) respond to the vector sum of the
voltages applied to the coils. Ideally, this relationship fol-
sine
lows a cosine equation. Since this is a transcendental and
non-linear function, devices of this type use an approxi-
mation for this relationship. The SACD uses a tangential
algorithm as shown in Figure 1. Only 1 output varies in
any 45 degree range.
[
V
SIN+
– V
SIN−
V
COS+
– V
COS−
]
For
θ
= 90.176° to 134.824°:
V
SIN
= 0.748
×
V
BB
V
COS
=
−Tan(θ
– 90°)
×
0.748
×
V
BB
For
θ
= 135.176° to 179.824°:
V
SIN
= Tan(180° –
θ) ×
0.748
×
V
BB
V
COS
=
−0.748 ×
V
BB
Quadrant III
θ
= 180° + Tan
−1
[
V
SIN+
– V
SIN−
V
COS+
– V
COS−
]
For
θ
= 180.176° to 224.824°:
V
SIN
=
−Tan(θ
– 180°)
×
0.748
×
V
BB
V
COS
=
−0.748 ×
V
BB
For
θ
= 225.176° – 269.824°:
V
SIN
=
−0.748 ×
V
BB
V
COS
=
−Tan(270°
–
θ) ×
0.748
×
V
BB
Quadrant IV
θ
= 360° – Tan
−1
Degrees of Rotation
0°
Max (128)
45°
90°
135°
180°
225°
270°
315°
360°
SIN
+
Output
Min (0)
Max (128)
SIN
–
Output
Min (0)
[
V
SIN+
– V
SIN−
V
COS+
– V
COS−
]
Max (128)
COS
+
Output
Min (0)
For
θ
= 270.176° to 314.824°:
V
SIN
=
−0.748 ×
V
BB
V
COS
= Tan(θ – 270°)
×
0.748
×
V
BB
For
θ
= 315.176° – 359.824°:
V
SIN
=
−Tan(360°
–
θ) ×
0.748
×
V
BB
V
COS
= 0.748
×
V
BB
V
COS+
360/0°
0.748V
BB
Max (128)
COS
–
Output
Min (0)
000
001
010
011
100
101
110
111
000
MUX bits (D9 – D7)
Figure 1. Major gauge outputs.
Quadrant I
θ
= Tan
−1
[
V
SIN+
– V
SIN−
V
COS+
– V
COS−
]
270°
V
SIN–
θ
IV
I
0.748V
BB
III
0.748V
BB
II
90°
V
SIN+
For
θ
= 0.176° to 44.824°:
V
SIN
= Tanθ
×
0.748
×
V
BB
V
COS
= 0.748
×
V
BB
For
θ
= 45.176° to 89.824°:
V
SIN
= 0.748
×
V
BB
V
COS
= Tan(90° –
θ) ×
0.748
×
V
BB
0.748V
BB
180°
V
COS−
Graph 1. Major gauge response.
4
CS4172
Applications Information: continued
To drive the gauge’s pointer to a particular angle, the
microcontroller sends a 10-bit digital word into the serial
port. These 10 bits are divided as shown in Figure 2.
However, from a software programmers viewpoint, a
360° circle is divided into 1024 equal parts of .35° each.
Table 1 shows the data associated with the 45° divisions
of the 360° driver.
register changes at SO on the falling edge of SCLK. This
arrangement allows the cascading of devices. SO is
always enabled. Data shifts through without affecting the
outputs until CS is brought low. At this time the internal
DAC is updated and the outputs change accordingly.
CS
CS
Setup
CS
Hold
MSB
Major
Gauge
(360°)
D9
D8
D7
D6
D5
D4
D3
D2
D1
LSB
SCLK
D0
SI
(Setup)
SI
(Hold)
D9 – D7 select
which octant
Divides a 45° octant into 128 equal parts
to achieve a .35° resolution
Code 0 – 127
10
SI
Figure 2. Definition of serial word.
SO
SO
(Rise, Fall)
10% - 90%
SO
(tpd)
Input Code
Ideal
(Decimal) Degrees
0
0
128
45
256
90
384
135
512
180
640
225
768
270
896
315
1023
359.65
Nominal
Degrees
0.176
45.176
90.176
135.176
180.176
225.176
270.176
315.176
359.826
V
SIN
(V)
0.032
10.476
10.476
10.412
−0.032
−10.476
−10.476
−10.476
−0.032
V
COS
(V)
10.476
10.412
−0.032
−10.476
−10.476
−10.412
0.032
10.412
10.476
Figure 3. Serial data timing diagram.
V
CC
CS
SI
10 Bits
10 Bits
The 10 bits are shifted into the device’s shift register MSB
first using an SPI compatible scheme. This method is
shown in Figure 3. The CS must be high and remain high
for SCLK to be enabled. Data on SI is shifted in on the ris-
ing edge of the synchronous clock signal. Data in the shift
ST
OUTPUTS
ENABLED
REGISTERS
SET TO ZERO
Table 1. Nominal output for major gauge (V
BB
= 14V).
OE
REGISTERS
SET TO ZERO
OUTPUTS
ENABLED
Figure 4. Power-up sequence.
Application Diagram
V
BAT
V
REG
5V
12V
CS8156
ENABLE
360° Gauge
10k
SIN−
SIN+
ST
CS
SI
SCLK
OE
Microcontroller
CS4172
COS+
COS−
V
BB
V
CC
SO
Next Driver
5