![](http://datasheet.mmic.net.cn/350000/CS4122_datasheet_16544896/CS4122_6.png)
CS4122
http://onsemi.com
6
Quadrant IV
360
°
Tan1
(VSIN )
(VCOS )
(VSIN )
(VCOS )
For
270.176
°
to 314.824
°
:
0.748
VCOS
Tan(
VSIN
VBB
270
°
)
0.748
VBB
For
315.176
°
359.824
°
:
VSIN
VCOS
Tan (360
°
)
0.748
VBB
0.748
VBB
270
°
V
SIN
V
SIN+
90
°
V
COS
V
COS+
360/0
°
180
°
0.748 V
BB
0.748 V
BB
0.748 V
BB
0.748 V
BB
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
onehalf 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
°
Degrees of Rotation
C+
Output
Max(128)
C
Output
Max(128)
Min(0)
Min(0)
00
1F
3F
5F
Code
16
7F
9F
BF
DF
FF
Figure 4. Minor Gauge Outputs
Quadrant I, II
56.1
°
Tan1(VC )
(VC )
V(V
BB
2)
VBB
VCOIL
V(V
BB
2)
Tan (56.1
°
)
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
I
II
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
D11
LSB
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
D10
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 D0
D10
D11
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 D0
D10
D11
Gauge
Address
= “11”
All Outputs Disabled; D9 D0 = “Don’t Care”
All
Gauges
Disabled
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
D10
D11
Figure 6. Definition of Serial Word