BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - raydem

Pages: 1 [2]
16
General Discussion / Re: name of the font
« on: May 25, 2022, 06:49:37 AM »
Thank you

17
General Discussion / name of the font
« on: April 21, 2022, 12:09:40 PM »
hello,

Do you know what is the name of the font include in the FT811? I need it for the display designer.

Thank you

18
Test and Review Area / Re: EVE Asset Builder 1.6.0
« on: March 09, 2022, 01:35:19 PM »
Hello,

where can I download EVE Asset Builder ??

Thank you

19
Discussion - EVE / Re: Standby mode
« on: December 22, 2021, 05:24:55 PM »
Thank you, It will be possible to do anything externally with the pinouts to be persistent on the LCD panel? Maybe some pinouts with pull up or something?

20
Discussion - EVE / Re: Standby mode
« on: December 20, 2021, 12:53:55 PM »
Thank you for the answer.

When send the command 0x41 (Standbye mode) the LCD panel turns off.  It is able to back to active only with the command 0x00 (Active), and the LCD panel turns on. Any idea why the display turns off? I need to show the last screen in the LCD panel.

21
Discussion - EVE / Standby mode
« on: December 18, 2021, 02:38:37 AM »
Hello,
Question.... When send the command Standby (0x41) the display should turns off?

22
Discussion - EVE / Re: FT811 only draw first time
« on: December 09, 2021, 01:10:17 PM »
thank you, Now I can draw fine.

23
Discussion - EVE / Re: FT811 only draw first time
« on: December 02, 2021, 09:08:41 AM »
Hi,

This is the panel settings..

Code: [Select]
#define EVE_VSIZE   (320L)  /* Tvd Number of visible lines (in lines) - display height */
#define EVE_HSIZE   (240L)  /* Thd Length of visible part of line (in PCLKs) - display width */

#define EVE_VSYNC0  (10L)    /* Tvf Vertical Front Porch */
#define EVE_VSYNC1  (12L)    /* Tvf + Tvp Vertical Front Porch plus Vsync Pulse width */
#define EVE_VOFFSET (22L)   /* Tvf + Tvp + Tvb Number of non-visible lines (in lines) */
#define EVE_VCYCLE  (343L)  /* Tv Total number of lines (visible and non-visible) (in lines) */

#define EVE_HSYNC0  (16L)   /* Thf Horizontal Front Porch */
#define EVE_HSYNC1  (36L)   /* Thf + Thp Horizontal Front Porch plus Hsync Pulse width */
#define EVE_HOFFSET (76L)   /* Thf + Thp + Thb Length of non-visible part of line (in PCLK cycles) */
#define EVE_HCYCLE  (317L)  /* Total length of line (visible and non-visible) (in PCLKs) */

#define EVE_PCLK    (10L) // 60/10 = 6 MHz
#define EVE_PCLKPOL (1L) // negative active clock edge
#define EVE_SWIZZLE (0L) // order of bits in each colour channel to be reserved.
#define EVE_CSPREAD (0L) // helps reduce the switching noise

When read the SPI any register the result is always 0x004A4342. I read  REG_ID and REG_CPURESET without problem, but the rest is always the same.

24
Discussion - EVE / Re: FT811 only draw first time
« on: December 01, 2021, 10:10:45 AM »
I see that if  deactive  and  active the REG_PCLK every time that I want to change of list.. It is works.. This is rigth?

25
Discussion - EVE / FT811 only draw first time
« on: November 30, 2021, 01:46:34 PM »
Hello,

I posted in the other topic, but I think that it is better to open new toppic. Sorry if it is wrong.

I am working with FT811 and I achieved to draw in the display one time only. The second time, nothing happens.

Code: [Select]
Private void W32(uint8 *start, const uint32 data){
    uint8 cont = *start;

    gpDataBuffer[++cont] = (uint8)(data & 0x000000ff);
    gpDataBuffer[++cont] = (uint8)(data >> 8);
    gpDataBuffer[++cont] = (uint8)(data >> 16);
    gpDataBuffer[++cont] = (uint8)(data >> 24);

    *start = cont;
}

    Private void StaticBackground(uint16 *start){
        uint8 cont = *start;

        uint32 address =  EVE_RAM_DL; // 0x00300000;

        gpDataBuffer[cont] = (uint8)((address >> 16) | MEM_WRITE);
        gpDataBuffer[++cont] = (uint8)(address >> 8);
        gpDataBuffer[++cont] = (uint8)(address & 0x000000ff);


           if(change == 0u){
                W32(&cont, CLEAR_COLOR_RGB(0,255,255));
                W32(&cont, COLOR_RGB(255,0,0));
           }
           else{
                W32(&cont, CLEAR_COLOR_RGB(255,255,0));
                W32(&cont, COLOR_RGB(0,255,0));
           }
       
         W32(&cont, CLEAR(1,1,1));
        W32(&cont, BEGIN(EVE_POINTS));
        W32(&cont, POINT_SIZE(200));
        W32(&cont, VERTEX2II(120,120,0,0));
        W32(&cont, END());
        W32(&cont, DISPLAY());

       SendGraphicData(++cont); //Send over SPI the buffer
}

void Main(){
    uint8 change = 0u;
    Init_EVE();
    while(1){
        StaticBackground(0);
        EveMemWrite(SEND_8_BITS, REG_DLSWAP, EVE_DLSWAP_FRAME); //Send over SPI DLSWAP
        if (0u == change)
               change = 1u;
        else
               change = 0u;

        DELAY_MS(5000);
}
}

26
Discussion - EVE / Re: FT811 read REG_ID
« on: November 25, 2021, 12:37:32 PM »
I just went over the datasheet and I would try this:

Code: [Select]
#define EVE_HSIZE   (240L)
#define EVE_VSIZE   (320L)
#define EVE_VSYNC0  (10L)
#define EVE_VSYNC1  (12L)
#define EVE_VOFFSET (22L)
#define EVE_VCYCLE  (340L)
#define EVE_HSYNC0  (16L)
#define EVE_HSYNC1  (36L)
#define EVE_HOFFSET (76L)
#define EVE_HCYCLE  (296L)
#define EVE_PCLK    (10L)
#define EVE_PCLKPOL (0L)
#define EVE_SWIZZLE (0L)
#define EVE_CSPREAD (1L)

This display is however not like any other I have used so far.


And while I noticed that you have used my library, it looks like you have rewritten it starting partly from scratch.
Nothing wrong with this.
But is there anything that I could improve upon?


Which controller are you using?
The SPI timing is rather strange with so much time before CS goes high again.

Thanks for the answer. Finally, I achieved it. This is the configuration.

Code: [Select]
#define EVE_HSIZE   (240L)
#define EVE_VSIZE   (320L)
#define EVE_VSYNC0  (10L)
#define EVE_VSYNC1  (12L)
#define EVE_VOFFSET (22L)
#define EVE_VCYCLE  (342L)
#define EVE_HSYNC0  (16L)
#define EVE_HSYNC1  (36L)
#define EVE_HOFFSET (76L)
#define EVE_HCYCLE  (316L)
#define EVE_PCLK    (10L)
#define EVE_PCLKPOL (1L)
#define EVE_SWIZZLE (0L)
#define EVE_CSPREAD (0L)

I have not problem with your code and it is good, but I had to adapt it for my code .  About the time before CS high, yes, It is because I am using a OS (Not RTOS, It our own OS). I But I think that I not have problem with this. Now, I draw in the LCD well, but I have a stranger problem. First, I need to use the SPI communication few as possible, so I put all in a buffer and send it once. (of course that some commands will be separatly). But, for example in the next code. I buffered a list and send it, the first time that execute StaticBackground the display shows the rigth draw but when change the color and draw again.... Nothing happens.

Code: [Select]
Private void W32(uint8 *start, const uint32 data){
    uint8 cont = *start;

    gpDataBuffer[++cont] = (uint8)(data & 0x000000ff);
    gpDataBuffer[++cont] = (uint8)(data >> 8);
    gpDataBuffer[++cont] = (uint8)(data >> 16);
    gpDataBuffer[++cont] = (uint8)(data >> 24);

    *start = cont;
}

    Private void StaticBackground(uint16 *start){
        uint8 cont = *start;

        uint32 address =  EVE_RAM_DL; // 0x00300000;

        gpDataBuffer[cont] = (uint8)((address >> 16) | MEM_WRITE);
        gpDataBuffer[++cont] = (uint8)(address >> 8);
        gpDataBuffer[++cont] = (uint8)(address & 0x000000ff);


           if(change == 0u){
                W32(&cont, CLEAR_COLOR_RGB(0,255,255));
                W32(&cont, COLOR_RGB(255,0,0));
           }
           else{
                W32(&cont, CLEAR_COLOR_RGB(255,255,0));
                W32(&cont, COLOR_RGB(0,255,0));
           }
       
         W32(&cont, CLEAR(1,1,1));
        W32(&cont, BEGIN(EVE_POINTS));
        W32(&cont, POINT_SIZE(200));
        W32(&cont, VERTEX2II(120,120,0,0));
        W32(&cont, END());
        W32(&cont, DISPLAY());

       SendGraphicData(++cont); //Send over SPI the buffer
}

void Main(){
    uint8 change = 0u;
    Init_EVE();
    while(1){
        StaticBackground(0);
        EveMemWrite(SEND_8_BITS, REG_DLSWAP, EVE_DLSWAP_FRAME); //Send over SPI DLSWAP
        if (0u == change)
               change = 1u;
        else
               change = 0u;

        DELAY_MS(5000);
}
}



27
Discussion - EVE / Re: FT811 read REG_ID
« on: November 17, 2021, 08:44:57 AM »
Thank you very much, Now appear that works.

I am trying to config the Display. Could you help me, please? The display is COM24H2P71ULC of 320x240. This is the data of datasheet:



The config that I suppose is:

Code: [Select]
#define EVE_HSIZE   (240L)  /* Thd Length of visible part of line (in PCLKs) - display width */
#define EVE_VSIZE   (320L)  /* Tvd Number of visible lines (in lines) - display height */

#define EVE_VSYNC0  (0L)    /* Tvf Vertical Front Porch */
#define EVE_VSYNC1  (2L)    /* Tvf + Tvp Vertical Front Porch plus Vsync Pulse width */
#define EVE_VOFFSET (10L)   /* Tvf + Tvp + Tvb Number of non-visible lines (in lines) */ //DELETE
#define EVE_VCYCLE  (340L)  /* Tv Total number of lines (visible and non-visible) (in lines) */
#define EVE_HSYNC0  (0L)   /* (40L)   // Thf Horizontal Front Porch */
#define EVE_HSYNC1  (20L)   /* Thf + Thp Horizontal Front Porch plus Hsync Pulse width */
#define EVE_HOFFSET (40L)   /* Thf + Thp + Thb Length of non-visible part of line (in PCLK cycles) */
#define EVE_HCYCLE  (296L)  /* Th Total length of line (visible and non-visible) (in PCLKs) */


#define EVE_PCLK    (10L) // 60/10 = 6 MHz
#define EVE_PCLKPOL (1L) // negative active clock edge
#define EVE_SWIZZLE (0L) // order of bits in each colour channel to be reserved.
#define EVE_CSPREAD (1L) // helps reduce the switching noise




28
Discussion - EVE / FT811 read REG_ID
« on: November 15, 2021, 10:31:33 PM »
Hello,

I have a FT811 and I am triying to Read the REG_ID, but only get 0xBE. My code is:

Code: [Select]

          EVE_pdn_clear();
  DELAY_MS(21); /* minimum time to allow from rising PD_N to first access is 20ms */
          EVE_cmdWrite(EVE_CLKEXT,0); /* setup EVE for external clock */
          EVE_cmdWrite(EVE_CLKSEL,0x46); /* set clock to 72 MHz */
          EVE_cmdWrite(EVE_ACTIVE,0); /* start EVE */
          DELAY_MS(500);
          chipid = EVE_memRead8(REG_ID);

And the SPI signals are:

CLKEXT and CLKSEL commands.


Active command.


Read REG_ID.

Pages: 1 [2]