DLPU057A March 2018 – April 2022 DLP3030-Q1
This command is used to program the Calibration Data to flash. This command supports variable length. Since the SPI Protocol supports only 255 bytes of data per command, the calibration data to program should be split across multiple commands to transmit the complete data.
This command is only supported in Calibration Mode.
Byte | Description |
1 | Command Byte (E0h) |
2 | Length |
3 | Command Flag (See below) |
4 | Data |
.. | Data |
.. | Checksum |
msb | Byte 3: Command Flag | lsb | |||||||
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
b (7:0) - | 0 – This command contains the complete data 1 – This command contains the beginning of data 2 – This command contains intermediate data 3 – This command contains the last data |
The command flag indicates the position of the data sent by the master.
If the calibration data is less than 254 bytes, command flag ‘0’ can be used to program the flash in a single step. In this mode, the internal flash sector which stores the calibration data will be erased and programmed with the received data. The software will then verify the validity of the data post which it will be used for new dimming computations. Appropriate status flags will be set if the programmed data is found to be invalid.
For calibration data exceeding 254 bytes, this command should be issued multiple times with the command flag set to ‘1’ for first 254 bytes, ‘2’ for all intermediate bytes and ‘3’ for the last set of bytes (less than or equal to 254).
When Command flag = ‘1’, the software erases the internal flash sector allotted for calibration data and stores the received data.
When Command flag = ‘2’, the software will program the received data to that location in flash where it stopped in the last step.
When Command flag = ‘3’, the received data will first be programmed to flash in the same way as command flag = ‘2’. After this, the validity of the calibration data is checked. The command will fail if the calibration data programmed is not valid.
The verification of new calibration data is done only after overwriting existing contents of flash with new data. Therefore, utmost care should be taken in forming the calibration data to program to flash. It is recommended to use TI provided tools to prepare and program calibration data to Piccolo flash. The system will not work without presence of proper calibration data.
Command Flag | Beginning (1) | Intermediate (2) | Last (3) |
Data Bytes | 0-254 | 255-509 | 510-764 |