
Commands
4.3.10 HOST_CMD_CLEAR_CALIBRATION_DATA
Since the calibration data is stored in a flash page, the flash page needs to be cleared before any
calibration data could be written. This command requests the EVM to erase the flash that contains the
calibration data.
NOTE:
Read back and save in the host the complete set of calibration data before executing this
command or else the calibration data will not be able to retrieve again.
4.3.10.1 Command Format
HOST_CMD_CLEAR_CALIBRATION_DATA
Command
Respond
LEN
2
2
Offset
Width
Data
Offset
Width
Data
CMDH
0
U8
0xD0
0
U8
0xD0
CMDL
1
U8
0x00
1
U8
0x80
4.3.11 HOST_CMD_SET_CALIBRATION_PHASE_n
This commands the EVM to set the calibration values with the values listed. Make sure the flash page
contains the calibration values is read, saved and erase before executing this command.
NOTE:
Only CMDH = 0xD1 is supported by this EVM.
4.3.11.1 Command Format
HOST_CMD_SET_CALIBRATION_PHASE_n
Command
Respond
LEN
30
2
Offset
Width
Data
Offset
Width
Data
0xD0 + n
CMDH
0
U8
0xD0 + n
0
U8
(n = 1, 2, 3)
0x80 | 0xdp,
0xdp
CMDL
1
U8
1
U8
d=device[0..7],
(always 0x00 in this EVM)
p = phase [1..15]
2
S16
Voltage channel dc offset
4
U16
Inlet capacitance in 1/64 µF
6
S32
Current channel dc offset
10
U32
Voltage channel ac offset
14
U32
Current channel ac offset
Phase correction in 1/1024
18
S16
Ts
20
U16
Vrms scaling factor
22
U16
Wire resistance in 1/256
Ω
24
U16
Irms scaling factor
26
U16
0x0000 reserved
28
U16
Power scaling factor
30
Serial Communication Commands
SLAU587 – August 2014
Copyright © 2014, Texas Instruments Incorporated