Hawk Instruction Manual
Document number
Revision
File name
Date
Page
2015-07-22-05
V1.1
HK82x_IM_v1_1
30
th
Jul 2015
13 of 14
4.4
Query Commands
Notes:
-
Command 0x4F writes to the system status register, 0x49 reads from the system status register.
-
Command 0x53 0xE0 write to the FPGA registers, 0x53 0xE1 read from the FPGA registers.
Query Command
Send Serial Packet
Comments
Get system status
0x49 0x50
1 Byte returned; Default = 0x16
YY Bit 6= 0 Check sum mode disabled
YY Bit 4 = 1 Command acknowledge enabled
YY Bit 1 = 1 FPGA enabled
YY Bit 0 = 0 EEPROM communications disabled
YY Bits 2,3,5,7 = reserved
Get FPGA CTRL
0x53 0xE0 0x01 0x00 0x50
0x53 0xE1 0x01 0x50
1 Byte returned; Default = 0x19
YY Bit 3 = 1 = to enable ALC (Default)
YY Bits 0-2,4-7 = unused
Get TEST PATTERN state
0x53 0xE0 0x01 0xFA 0x50
0x53 0xE1 0x01 0x50
1 byte returned; default = 0xE0
YY Bit 7= 1 Gamma Enabled (Default)
YY Bit 7= 0 Gamma Disabled
Bit 3 Bit 2 Bit 1 Bit0 (of YY)
0 0 0 0 Disabled (Default)
0 0 1 0 Full White
0 0 1 1 ½ White
0 1 0 0 ¼ White
1 0 0 0 Black
1 0 0 1 Vertical Stripes
Get internal temperature
0x53 0xE0 0x01 0x70 0x50
0x53 0xE1 0x01 0x50
0x53 0xE0 0x01 0x71 0x50
0x53 0xE1 0x01 0x50
2 bytes returned
1
st
byte = Top nibble (top 4 bits=0)
2
nd
byte = Lower byte
Counts = ((1
st
byte x 256)+2
nd
byte)
If counts<2048:
Positive Temperature
o
C=counts/16
If counts>2047:
Negative Temperature
o
C=(counts-4096)/16
Get Micro version
0x56 0x50
Two bytes transmitted from camera when command
received. 1
st
byte Major version 2
nd
byte Minor version.
Get FPGA version
0x53 0xE0 0x01 0x7E 0x50
0x53 0xE1 0x01 0x50
0x53 0xE0 0x01 0x7F 0x50
0x53 0xE1 0x01 0x50
Set address 7E (Major Version Byte)
Read address 7E, 1 byte
Set address 7F (Minor Version Byte)
Read address 7F, 1 byte
Get Unit Serial Number
0x4f 0x13 0x50
0x53 0xAE 0x05 0x01 0x00
0x00 0x02 0x00 0x50
0x53 0xAF 0x02 0x50
0x4f 0x12 0x50
Enable EEPROM access
2 bytes returned:
1
st
byte is the LSB
2
nd
is the MSB
Disable EEPROM access