Page: 66/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Function COM_HVPSU2D_GetADCHousekeeping
int COM_HVPSU2D_GetADCHousekeeping
(WORD PortNumber, unsigned PSU,
double & VoltAVDD, double & VoltDVDD,
double & VoltALDO, double & VoltDLDO ,
double & VoltRef, double & TempADC);
Command: h
n
©
Response: h
nAAAABBBBCCCCDDDDEEEEFFFF
©
Saves the measured housekeeping values of the analog-to-digital
converter (ADC) of the PSU module with the number
PSU
in the vari-
ables
VoltAVDD
,
VoltDVDD
,
VoltALDO
,
VoltDLDO
,
VoltRef
, and
TempADC
, and returns an error code according to Tab. 10.
The variable
PSU
is the number of the PSU module, for more details,
see function
COM_HVPSU2D_GetPSUOutputVoltage
.
The return values in the variables
VoltAVDD
,
VoltDVDD
,
VoltALDO
,
VoltDLDO
, and
VoltRef
are voltages in V. The first four values are
the supply voltages of the ADC, their nominal values are 3.5 V for the
analog supply voltage
AVDD
, 3.3 V for the digital supply voltage
DVDD
,
1.8 V for the analog core supply voltage
ALDO
, and 1.8 V for the digital
core supply voltage
DLDO
. The value in the variable
VoltRef
is the
internal reference voltage of the ADC, its nominal value is 2.5 V. The
return value in the variable
TempADC
is the ADC temperature in ºC.
The direct command (
h
n
©
) contains one decimal character (
n
) for the
variable
PSU
. The response (
h
nAAAABBBBCCCCDDDDEEEEFFFF
©
)
contains the decimal character (
n
) for the variable
PSU
followed
by 6 x 4 hexadecimal digits for the variables
VoltAVDD
(
AAAA
),
VoltDVDD
(
BBBB
),
VoltALDO
(
CCCC
), and
VoltDLDO
(
DDDDD
) ,
and
VoltRef
(
EEEE
), and
TempADC
(
FFFF
). The voltage
values are in mV, for the parameter unit conversion,
see functions
COM_HVPSU2D_GetPSUOutputVoltage
and
. The reference voltage
VoltRef
is measured indirectly by obtaining the ADC temperature using an ex-
ternal (
FFFF
) and internal (
EEEE
) reference voltage. Thus, the value
of the reference voltage has to be determined as a quotient of the val-
ues
FFFF
and
EEEE
multiplied by 2.5 V:
V
ref
=
FFFF
/
EEEE
· 2.5 V.
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]