User Manual

44
//Peripheral
#define ErrorCode_LowPowerSupply_bm 0x00010000 //Power loss have occurred
#define ErrorCode_TempSensorFail_bm 0x00020000 //Read ID of temperature sensor is fail
#define ErrorCode_MCU_OverTemp 0x00040000 //over-temperature
#define ErrorCode_MCU_UnderTemp 0x00080000 //under-temperature
5.1.8.9 Count of over-heat and input voltage out of range
Command format: Get
Byte number
1
2
3
4
5
6
7
Byte Definition
Sync
Addr
Cmd1
Cmd2
Data1
Data2
ChkSum
Query VIN/Temp.
over range count
0xFF
0x01
0x1A
0x6F
0x00
0x00
--
Response Format:
Byte number
1
2
3
4
5
6
7
Byte Definition
Sync
Addr
Resp1
Resp2
Data1
Data2
ChkSum
Extended Response
0xFF
0x01
0x00
VIN count
0x00
Temp.
count
--
VIN: Input voltage
Temp: Temperature of LED
Command format: Clear
Byte number
1
2
3
4
5
6
7
Byte Definition
Sync
Addr
Cmd1
Cmd2
Data1
Data2
ChkSum
Clear VIN/Temp.
over range count
0xFF
0x01
0x9A
0x6F
VIN
Temp
--
Response Format:
Byte number
1
2
3
4
Byte Definition
Sync
Addr
Faults
ChkSum
General Response
0xFF
0x01
--
--
Set VIN or Temp bit with 1 to clear count
Command format: Get
Byte number
1
2
3
4
5
6
7
Byte Definition
Sync
Addr
Cmd1
Cmd2
Data1
Data2
ChkSum
Query OVP over
range count
0xFF
0x01
0x1C
0x6F
0x00
0x00
--
Response Format:
Byte number
1
2
3
4
5
6
7
Byte Definition
Sync
Addr
Resp1
Resp2
Data1
Data2
ChkSum
Extended Response
0xFF
0x01
LED1
count
LED2
count
LED3
count
LED4
count
--