No. 20S071-01
STC-HD213DV / STC-HD213DV-CS / STC-HD213SDI / STC-HD213SDI-CS /
STC-HD213DVN / STC-HD213DVN-CS / STC-HD213SDIN / STC-HD213SDIN-CS
Product Specifications and User
67/94
8.3 Camera control commands
All data in this section is described in Hexadecimal format (HEX).
The command list for communication
Command
(HEX)
Details
4A The format for reading data to camera IC’s is as follows:
In the case of writing, since maximum number of addresses can be written at once is 32
addresses,
data must be written 8 times separately if 256 bytes data must be written.
[SLV]: Slave Address
(Please refer to the Slave address for ICs (8 bits) list)
[START_H] x 16 + [START_L]: Star Address (0000 to 03FF)
[END_H] x 16 + [END_L]: End Address (0000 to 03FF)
[Data (i)]: Data on Address i
[DataLenH]: Upper Byte of
[END_H] x 16 + [END_L] - [START_H] x 16 + [START_L] + 6
[DataLenL]: Lower Byte of
[END_H] x 16 + [END_L] - [START_H] x 16 + [START_L] + 6
The format for reading data to camera IC’s is as follows:
Send data
02, 4A, 00, 05, [SLV], [START_H], [START_L], [END_H], [END_L], [CHK], 03
[CHK] = Lower 8bits of
“4A + 00 + 05 + [SLV] + [START_H] + [START_L] + [END_H] + [END_L]”
Receive Data
02, 4A, [DataLenH], [DataLenL], [SLV], [START_H], [START_L], [END_H], [END_L],
[DATASTART], [DATASTART + 1], … , [DATAEND], [CHK], 03
[CHK] = Lower 8bits of
“4A + [DataLenH] + [DataLenL] + [SLV] + [START_H] + [START_L] + [END_H] +
[END_L] + [DATASTART] + [DATASTART + 1] + … + [DATAEND]”
*An example of sending a command to read out all data (address 0000 to 07FF) from IC
(IC slave address is 50) is as follows:
(02, 4A, 00, 03, 50, 00, 00, 07, FF, A3, 03)