8 – temperature control register (tempcn), Ds4830a user’s guide – Maxim Integrated DS4830A Optical Microcontroller User Manual
Page 61
DS4830A User’s Guide
61
7.2.8 – Temperature Control Register (TEMPCN)
The Temperature Control register TEMPCN configures and enables internal die temperature. The Internal
Temperature has a dedicated data buffer at address 22. The DS4830A ADC controller forces current into the internal
diode and integrates voltage across diode. After integration the voltage is measured at ADC and the voltage is
converted into temperature.
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Name
-
-
-
-
-
INT_IEN
-
-
-
-
-
INT_ALIGN
-
-
-
INT_TEMP
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Access
r
r
r
r
r
rw
r
r
r
r
r
rw
r
r
r
rw
BIT
NAME
DESCRIPTION
15:11
-
Reserved. The user should not write to these bits.
10
INT_IEN
Internal Temperature Interrupt Enable: Setting this bit to ‘1’ enables an interrupt
generation on completion of an internal temperature conversion.
9:5
-
Reserved. The user should not write to these bits.
4
INT_ALIGN
Internal Temperature Data Align. Setting this bit to ‘1’ configures internal temperature
conversion data in left aligned mode. Setting this bit to ‘0’ configures internal temperature
conversion data in right aligned mode.
3:1
-
Reserved. The user should not write to these bits.
0
INT_TEMP
Internal Temperature Enable. Setting this bit to ‘1’ initiates internal temperature
conversion. The internal temperature typical conversion time is 42µs for default ADC clock.
After internal temperature conversion, result is available in data buffer 22.
7.2.9 – Average and Reference Control Register (REFAVG)
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Name
-
-
-
-
-
-
REFOUT INTAVG
-
-
INTAVG[1:0] SH1AVG[1:0]
SH0AVG[1:0]
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Access
r
r
r
r
r
r
rw
rw
r
r
rw
rw
rw
rw
rw
rw
BIT
NAME
DESCRIPTION
15:10
-
Reserved. The user should not write to these bits.
9
REFOUT
Internal Reference Control: Setting this bit to ‘1’ outputs the ADC internal reference at
GP1 (Pin no 6, Port2.1).
8
INTREF
Internal Reference Control: Setting this bit to ‘1’ enables the ADC internal reference and
setting this bit to ‘0’ disables the ADC internal reference.
7:6
-
Reserved. The user should not write to these bits.
5:4
INTAVG
Internal Die Temperature Sample Average Control Register: These bits configure the
number of Internal Die Temperature samples to be averaged.
Internal Die Temperature
Number of Samples for Averaging
00b
1
01b
8
10b
16
11b
32
3:2
SH1AVG[1:0] SH1 Sample Average Control Register: These bits configure the number of SH1 samples
to be averaged.
SH1AVG
Number of Samples for Averaging
00b
1
01b
2
10b
4
11b
8
1:0
SH0AVG[1:0] SH0 Sample Average Control Register: These bits configure the number of SH0 samples
to be averaged.
SH0AVG
Number of Samples for Averaging
00b
1
01b
2
10b
4
11b
8