DLPU082C August   2021  – March 2024 DLPC7540

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Scope
  5. References
  6. Acronyms
  7. System Boot
    1. 4.1 Data In flash
    2. 4.2 Bootloader Application
    3. 4.3 Main Application
    4. 4.4 Commands Supported by Bootloader and Main Applications
    5. 4.5 Debug Terminal
    6. 4.6 HOST_IRQ/SYSTEM_BUSY
    7. 4.7 Heartbeat
    8. 4.8 Low-Level Fault
  8. System Status
  9. Version
  10. Power Modes
  11. Display Modes
  12. Source Detection and Configuration
  13. 10Internal Sources
    1. 10.1 Test Patterns (TPG)
    2. 10.2 Solid Field (SFG) Color
    3. 10.3 Curtain
  14. 11Display Formatting
  15. 12Image Processing
  16. 13Warping
    1. 13.1 Control Point Table
    2. 13.2 Manual Warp Table
    3. 13.3 Table Constraints
    4. 13.4 Example Warp Table
    5. 13.5 Manual Warping Commands
      1. 13.5.1 CMD_SetManualWarpControlPoints [Command ID: 0x35, Destination: 4]
      2. 13.5.2 CMD_GetManualWarpControlPoints [Command ID: 0x35, Destination: 4]
      3. 13.5.3 CMD_WriteManualWarpTable [Opcode: 0x34, Destination: 4]
      4. 13.5.4 CMD_ReadManualWarpTable [Opcode: 0x34, Destination: 4]
      5. 13.5.5 CMD_ConfigureSmoothWarp [Command ID: 0x38, Destination: 4]
      6. 13.5.6 CMD_ApplyManualWarping [Command ID: 0x36, Destination: 4]
    6. 13.6 Optical (Lens) Distortion Correction
  17. 14Introduction to Blending
    1. 14.1  Blend Map Control Points
    2. 14.2  Blend Map Gain Values
    3. 14.3  Blend Map Offset Value
    4. 14.4  Constraints
    5. 14.5  Manual Blending Commands
      1. 14.5.1 CMD_EnableEdgeBlending [Command ID: 0x2F]
      2. 14.5.2 CMD_SetBlendMapControlPoints [Opcode: 0x2E]
      3. 14.5.3 CMD_ GetBlendMapControlPoints [Command ID: 0x2E]
      4. 14.5.4 CMD_SetBlendMapGainValues [Command ID: 0x2B]
      5. 14.5.5 CMD_ GetBlendMapGainValues [Command ID: 0x2B]
      6. 14.5.6 CMD_ SetBlendMapOffsetValues [Command ID: 0x2D]
      7. 14.5.7 CMD_ GetBlendMapOffsetValues [Command ID: 0x2D]
      8. 14.5.8 CMD_ApplyBlendMap [Command ID: 0x2C]
    6. 14.6  Manual Blending Application Commands
      1. 14.6.1 CMD_SetEdgeBlendingSystemParams [Command ID: 0x3D]
      2. 14.6.2 CMD_GetEdgeBlendingSystemParams [Command ID: 0x3D]
      3. 14.6.3 CMD_SetEdgeBlendingConfiguration [Command ID: 0x3E]
      4. 14.6.4 CMD_GetEdgeBlendingConfiguration [Command ID: 0x3E]
    7. 14.7  Cropping of Input Image for Blending Setup
    8. 14.8  Storing Edge Blend Configuration in EEPROM
    9. 14.9  Storing in EEPROM or Secondary Flash
    10. 14.10 Manual Blending GUI in Control Program
  18. 15Illumination Control
  19. 16Peripherals
    1. 16.1 GPIO
    2. 16.2 PWM
  20. 17Interface Protocol
    1. 17.1 Supported Interfaces
    2. 17.2 I2C Target
    3. 17.3 USB
  21. 18Command Protocol
    1. 18.1 Command Packet
    2. 18.2 Response Packet
    3. 18.3 Destination Details
    4. 18.4 Error Handling and Recovery
    5. 18.5 System Busy - I2C scenarios
      1. 18.5.1 GPIO Implementation
      2. 18.5.2 Short Status Response
    6. 18.6 Support for Variable Data Size
  22. 19Auto-Initialization Batch File
  23. 20Command Descriptions
  24. 21System Commands
    1. 21.1  3D
    2. 21.2  Administrative
    3. 21.3  Autolock
    4. 21.4  Bootloader
    5. 21.5  Calibration
    6. 21.6  Blending
    7. 21.7  Debug Internal
    8. 21.8  Debug
    9. 21.9  General Operation
    10. 21.10 Illumination
    11. 21.11 Image Processing
    12. 21.12 Manual WPC
    13. 21.13 Peripherals
    14. 21.14 Vision
    15. 21.15 Warping
  25.   Revision History

CMD_SetBlendMapGainValues [Command ID: 0x2B]

This command sets the gain values for the 2016 (63×32) control points.

The gain values must be specified for each of the color channels.

Gain values must be between 0 and 1.999 (precision: u1.12). The the gain value must be in the fixed point format of u1.12.

Example: Suppose that a user wants to set the gain for a particular control point as 1.25. To convert to u1.12 format, the required value needs to be multiplied by 4096 to convert it to required format before passing it to this command. In u1.12, 1.25 is 5120.

There are two features here for using the command. User can select the broadcast values option from the Color Channel Select. What broadcast does is that user needs to pass values only once and it will broadcasted to all the three color channels R,G,B.

Otherwise user needs to pass value for R, G, B color channels separately. So the command will then be required to use 3 times one time for each color channel.

Another feature supported is passing compressed values. The compression used is RLE2 compression. For passing compressed values user needs to select the checkbox of Compression Enabled.

Example: Suppose that a user passes gain values as uncompressed, then user would need to use this command multiple times because of the restrictions (see the note below).

User has the following options for passing gain values using the command,

1. Pass Compressed values (RLE2) and broadcast it to all color channels

2. Pass Uncompressed values and broadcast it to all color channels

3. Pass separate Compressed values for each of color channel

4. Pass separate Uncompressed values for each of color channel

Note: The maximum number of bytes that can be passed at a time is 502 bytes and user needs to make sure not to exceed this. Suppose user is using the option of compress disabled then user will have to pass 2016 values to command. Because all values cannot be passed at the same time user must use the same command multiple times, and in each time update the Index value from which user wants to pass value.

The following table is an example of the values to pass to this command. The compression enabled and broadcast enabled options are used. After compression, the 2016 values of gain for a single color channel reduces to 64 in this example.

Table 14-3 Example CMD_ SetBlendMapGainValues Command Packet
Byte Index Value Description
0 0x54 Command packet header (destination 4, length present, response required)
1 0x2B Command opcode
2 0x01 Compression enabled: the command can accept compressed values
now
3 0x00 Broadcast selected in color channel select
4-5 0x0040 Total number of compressed values = 64 (for this example )
6-7 0x0000 Start Index = 0
Compressed gain value
8-9 0x003F G0 = 63
10-11 0x1000 G1 = 4096
12-13 0x0000 G2 = 0
14-15 0x003F G3 = 63
16-17 0x0000 G4 = 0
18-19 0x003F G5 = 63
20-21 0x0000 G6 = 0
22-23 0x003F G7 = 63
24-25 0x0000 G8 = 0
26-27 0x003F G9 = 63
28-29 0x0000 G10 = 0
30-31 0x003F G11 = 63
32-33 0x0000 G12 = 0
34-35 0x003F G13 = 63
36-37 0x0000 G14 = 0
38-39 0x003F G15 = 63
40-41 0x0000 G16 = 0
42-43 0x003F G17 = 63
44-45 0x0000 G18 = 0
46-47 0x003F G19 = 63
48-49 0x0000 G20 = 0
50-51 0x003F G21 = 63
51-52 0x0000 G22 = = 0
53-54 0x003F G23 = 63
55-56 0x0000 G24 = 0
57-58 0x003F G25 = 63
59-60 0x0000 G26 = 0
61-62 0x003F G27 = 63
63-64 0x0000 G28 = 0
65-66 0x003F G29 = 63
67-68 0x0000 G30 = 0
69-70 0x003F G31 = 63
71-72 0x003F G32 = 63
73-74 0xOF7F G33 = 3967
75-76 0x003F G34 = 63
77-78 0xOE75 G35 -3701
79-80 0x003F G36 = 63
81-82 0x0D6C G37 = 3436
83-84 0x003F G38 = 63
85-86 0x0C6A G39 = 3178
87-88 0x003F G40 = 63
89-90 0x0B60 G41 = 2912
91-92 0x003F G42 = 63
93-94 0x0A57 G43 = 2647
95-96 0x003F G44 = 63
97-98 0x094D G43 = 2381
99-100 0x003F G4663
101-102 0x0844 G47 = 2116
103-104 0x003F G48 = 63
105-106 0x0742 G49 = 1858
107-108 0x003F G50 = 63
109-110 0x0638 G51 = 1592
111-112 0x003F G52 = 63
113-114 0x052F G53 = 1327
115116 0x003F G54 = 63
117118 0x0425 G55 = 1061
119120 0x003F G56 = 63
121-122 0x031C G57 = 796
123-124 0x003F G58 = 63
125-126 0x021A G59 = 538
127-128 0x003F G60 = 63
129130 0x0111 G61 = 273
131-132 0x003F G62 = 63
133-134 0x0007 G63 = 7