STC-GE83A
STC-GEC83A
User Guide
19
Rev 1.01
3. Descriptions of the Format
Name
Descriptions
SOF
Start of Frame
Always set (or receive) the value as “02H”
Device Code
Set “000000” when accessing the camera’s function settings
Set “100000” when accessing the camera’s extended function settings.
Please refer to
the “Camera Command List” and “Description of the Camera Control Commands”.
Read / Write
Set (or receive) “0” to send the read command.
Set (or receive) “1” to send the write command.
Page Selection
After setting the read or write command, s
et “0” to access the command register of the camera.
Data is pulled from the command register when the read command is sent.
The existing data of the command register will be replaced by any data sent by the write command.
In this command, the data of the EEPROM is not replaced.
After setting the read or write command, s
et “1” to access the EEPROM of the camera.
Data is pulled from the EERPOM when the read command is sent.
The existing data of the EEPROM will be replaced by any data sent by the write command.
The receiving code of
“01H” is sent by the camera to the PC after the data of the EEPROM is replaced.
Command Code
Please refer to the following page.
Data Length
Data length (unit: byte)
Receiving Data
Receiving data length is dependent on the command that is sent after the read command.
The
data length is “00H” after sending the write command.
Sending Data
The data length is 1 byte when sending the read command.
The data length is dependent on the write command that is sent.
Data
The value of the data is dependent of the command.
EOF
End of Frame
Always set or receive the value as “03H”
Receiving Code
This indicates results of the command sent
01H: OK (ACK), 10H: NG (NAC), 12H: Command number error (Not matching),
13H: Communication frame error (only for Gamma data upload),
14H: Time out error (Two seconds),
15H: Check sum error (only for Gamma data upload),
16H: Data length error (Not matching), 17H: EEPROM write error
4. Example of Command
Send the read command to read the 00H address data of the register
02, 00, 00, 01, 00, 03
SOF, (Device code/Read/Register), Command code, Data length, Data, EOF
The return command
02, 01, 00, 03