This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLP3010EVM-LC: Splash image switch problem using DLPC-API

Part Number: DLP3010EVM-LC
Other Parts Discussed in Thread: DLPDLC-GUI, DLP3010, DLPC-API

When I use DLPDLC-GUI to switch the splash image to another one, it works well. However, the image will have some problems (image overlap) , if I use DLPC-API-1.7 to switch the splash image. 

The right image (GUI) and problem image (API) are shown below

and my program is

void main()
{
   InitConnectionAndCommandLayer();

   bool Status = CYPRESS_I2C_RequestI2CBusAccess();
   if (Status != true)
   {
      printf("Error Request I2C Bus ACCESS!!!");
      return;
   }

   DLPC34XX_DUAL_WriteRgbLedCurrent(0x78, 0x78, 0x78);
   DLPC34XX_DUAL_WriteInputImageSize(DLP3010_WIDTH, DLP3010_HEIGHT);
   DLPC34XX_DUAL_WriteDisplaySize(DLP3010_WIDTH, DLP3010_HEIGHT);
   DLPC34XX_DUAL_WriteSplashScreenSelect(0x02);
   DLPC34XX_DUAL_WriteSplashScreenExecute();
   WaitForSeconds(3);

   CYPRESS_I2C_RelinquishI2CBusAccess();
}

program file is below

dlpc347x_dual_samples.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*------------------------------------------------------------------------------
* Copyright (c) 2019 Texas Instruments Incorporated - http://www.ti.com/
*------------------------------------------------------------------------------
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* \file
* \brief Sample code for generating internal pattern data and communicating
* with the DLPC4710-LC EVMs.
*/
#include "dlpc_common.h"
#include "dlpc34xx_dual.h"
#include "dlpc347x_internal_patterns.h"
#include "cypress_i2c.h"
#include "stdio.h"
#include "math.h"
#include "time.h"
#define MAX_WIDTH DLP3010_WIDTH
#define MAX_HEIGHT DLP3010_HEIGHT
#define NUM_PATTERN_SETS 4
#define NUM_PATTERN_ORDER_TABLE_ENTRIES 4
#define NUM_ONE_BIT_HORIZONTAL_PATTERNS 4
#define NUM_EIGHT_BIT_HORIZONTAL_PATTERNS 4
#define NUM_ONE_BIT_VERTICAL_PATTERNS 4
#define NUM_EIGHT_BIT_VERTICAL_PATTERNS 4
#define TOTAL_HORIZONTAL_PATTERNS (NUM_ONE_BIT_HORIZONTAL_PATTERNS + NUM_EIGHT_BIT_HORIZONTAL_PATTERNS)
#define TOTAL_VERTICAL_PATTERNS (NUM_ONE_BIT_VERTICAL_PATTERNS + NUM_EIGHT_BIT_VERTICAL_PATTERNS)
#define FLASH_WRITE_BLOCK_SIZE 1024
#define FLASH_READ_BLOCK_SIZE 256
#define MAX_WRITE_CMD_PAYLOAD (FLASH_WRITE_BLOCK_SIZE + 8)
#define MAX_READ_CMD_PAYLOAD (FLASH_READ_BLOCK_SIZE + 8)
static uint8_t s_HorizontalPatternData[TOTAL_HORIZONTAL_PATTERNS][MAX_HEIGHT];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hello ,

    Welcome to TI E2E forums and thanks for showing interest in the DLP technology. 

    Can you please let us know the firmware version on which you are seeing such behavior?

    Regards,

    Mayank

  • The firmware version is 8.0.0

    I think I got what the problem was. The the size of four default  splash images are different.

    image 0 : 1280 x 720

    image 1 : 1280 x 720

    image 2 : 854 x 480

    image 3 : 854 x 480

    if I switch image 0 to image 1, the projected image is correct. If I switch image 0 to image 2 or 3, the projected image is incorrect.

    In order to avoid the problem, I change the four splash images have the same image size. The problem is solved.

    By the way, I want to know how to switch the splash image with different image size by the DLPC-API ?

     

  • ,

    Good to hear that you figured out the root cause.

    Write Splash Screen Select (0Dh) followed by Write Splash Execute (35h) is used to switch between Splash Images.

    You can read the following commands for the case where the splash image is correctly displayed and then write the same parameters with values corresponding on the splash image you want to display. 

    1. Display size

    2. Image Crop

    3. Input Image Size

    Regards,

    Mayank