CS4122
http://onsemi.com
6
Quadrant IV
q + 360° * Tan
−1
ƪ
(V
SIN)
) * (V
SIN*
)
(V
COS)
) * (V
COS*
)
ƫ
For q + 270.176°to 314.824° :
V
SIN
+*0.748 V
BB
V
COS
+ Tan(q * 270°) 0.748 V
BB
For q + 315.176° * 359.824° :
V
SIN
+*Tan (360° * q) 0.748 V
BB
V
COS
+ 0.748 V
BB
270°
V
SIN−
V
SIN+
90°
V
COS−
V
COS+
180°
360/0°
0.748 V
BB
0.748 V
BB
0.748 V
BB
0.748 V
BB
q
IV
III II
I
Figure 3. Major Gauge Response
The minor gauge coil outputs differ in that only one of the
coils in each movement is driven by the IC. The other is
driven directly by the analog supply voltage, specifically
one−half of this voltage. The common output assures that
this is true. By varying the voltage across the other coil to a
greater voltage, the pointer can be deflected more than 45°
to each side of the externally driven coil. This relationship
is shown in Figure 4.
Note: There are actually eight segments, but only the are
shown here for simplicity.
0° 14° 28° 42° 56° 70° 84° 98° 112°
+
utput
Max(128)
−
utput
Max(128)
Min(0)
Min(0)
00 1F 3F 5F 7F 9F BF DF FF
Code
16
Figure 4. Minor Gauge Outputs
Quadrant I, II
q + 56.1° * Tan
−1
ƪ
(V
C)
) * (V
C*
)
V
BB
* V
(V
BBń2)
ƫ
V
COIL
+ V
(VBBń2)
Tan (56.1° * q)
Figure 5. Minor Gauge Outputs
V
C−
V
C+
0.744 V
BB
0.744 V
BB
0°
(−56.1)
112.2°
56.1°
V
BB
/2
q
III
To drive a gauge’s pointer to a particular angle, the
microcontroller sends a 12 bit digital word to the CS4122.
These 12 bits are divided as shown in Figure 6. However,
from a software programmer’s viewpoint, a 360° circle is
divided into 1024 equal parts of 0.35° each and a 112.2° arc
is divided into 256 parts of 0.44° each. Table 1 shows the
data associated with the 45° divisions of the 360° driver.
Table 2 shows the data for the center and end points of the
112.2° drivers. Setting the address to “11” disables all
outputs.
Gauge
Address
= “00”
D9 − D7
select
which octant
Divides a 45° octant into
128 equal parts to achieve
a 0.35° resolution
Code 0 − 127
10
Major
Gauge
(360°)
MSB LSB
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0D10D11
Gauge
Address
= “01”
Set to
“00”
Deflection angle 0 − 112.2°,
to achieve a 0.44° resolution
Code 0 − 255
10
Minor
Gauge
#1
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0D10D11
Gauge
Address
= “10”
Set to
“00”
Deflection angle 0 − 112.2°,
to achieve a 0.44° resolution
Code 0 − 255
10
Minor
Gauge
#2
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0D10D11
Gauge
Address
= “11”
All Outputs Disabled; D9 − D0 = “Don’t Care”
All
Gauges
Disabled
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0D10D11
Figure 6. Definition of Serial Word