CY8CKIT-050 and Character LCD problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MarkH_61
Employee
Employee
25 likes received 50 replies posted 25 replies posted

Some of you may have seen a problem with the character LCD on the CY8CKIT-050 development board when running a system clock of 24 MHz or faster.  We found a timing issue in version 1.8 of the character LCD component.  To avoid this problem I recommend that you revert to version 1.7 of the character LCD.  You most likely will not see this issue on the CY8CKIT-001 since it has a different interface to the LCD.  The CY8CKIT-001 board has a level translator between the PSoC 5LP and the LCD.  The CY8CKIT-050 has 10K resistors on the data lines between the LCD and PSoC 5LP, which make it more susceptible to timing issues.

   

To revert to an older version of the LCD or any component, right-click on the project name in the Workspace Explorer and select "Update Components...".  Find the "CharLCD" component and select version "v1.7" form the Available Versions column.  Select the Update check box on the right, then select the "Next" button at the bottom of the dialog window.

   

Mark

0 Likes
12 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Does this problem only occur when the PSoC is powered with 5V, or does it happen with 3.3V also?

0 Likes
CrGa_284461
Level 1
Level 1

Hi,

   

I've an PSoC 4 with component Character LCD v1.90.

   

I use an LCD device like Hitachi @ 5 V.

   

I wrote this program to test the device:

   

int main()
{
    char init[32]="ABCdeFGHILMNOPQRSTUVWXYZ";
    LCD_WriteControl(LCD_CURSOR_BLINK);
    LCD_WriteControl( LCD_CURSOR_HOME);
    LCD_ClearDisplay();
    LCD_PrintString(init);
    LCD_WriteControl( LCD_CURSOR_HOME);
    CyDelay(1000u);
    LCD_Position(1,0);
    LCD_PrintString("abcdefghilmnopqrstuvwxyz");
    CyDelay(1000u);
    for(;;)
    {    
    
        }
}

   

 

   

The output is:

   

ABCdeFGHILMNO_ (blink Led)

   

The Clocks Page is set like this:

   

EXTCLK 24MHz

   

LFCLK ?

   

ILO 32MHZ

   

SYSCLK ?

   

IMO 24 MHz

   

HFCLK 24 MHz

   

 

   

Can you help me Please??

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

This is probably an issue with the organization of the LCD. You did not tell how many lines and how many characters/line it has got.

   

At first:

   

Avoid writing more than 15 chars to one line.

   

Check if you can reach the second line by writing to a position different from 0 (I have seen those cases)

   

You will have to figure out the trick.

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

A typical memory organization for a multi-line display is to have the second line start at offset 0x40 (sometimes its 0x20, but its rare). So when writing more than the number of characters in the first line the characters seem to disappear. If you would write more of them, they appear eventually in the second line.

   

Look at the data sheet of your display, it should tell you about this (because on low level, one need to set this memory address).

0 Likes
CrGa_284461
Level 1
Level 1

Hi.

   

The LCD has 2 lines, 16 ch. But

   

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
a b c d e f g h i l m  n  o 

   

The problem is in the 1st line tipically when I wanna write the p character, or space, or "l".

0 Likes
CrGa_284461
Level 1
Level 1

Also, I can write the second line with no problem. The index of col. have no problem. But if I wirte "son Alberto di"

   

in the second line I see  "son Alberto_"  and no other character

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

So you cannot write to the 12th column in your display? THis sounds like a problem of the display, not in PSoC. Can you try to reproduce that with another display? Or, for that matter, use the display with another MCU?

   

(And does it happen when the LCD is not set to blinking cursor?)

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Btw: you are writing about a PSoC4 problem in the PSoC5 forum - this might confuse users. Also, when you have a new problem please open a new thread, and don't hijack an existing one. Especially not when this one is about a different problem (you aren't using a PSoC5, are you?)

   

Doing so increases your chances to get good answers (I actually wanted to recommend to you to use the LCD from the -050 kit, since this is the title of this thread...)

0 Likes
lock attach
Attachments are accessible only for community members.
CrGa_284461
Level 1
Level 1

I'm sorry, I found this thread that may resolve my problem.

   

It isn't a problem of 12th col.  because if I don't write 'o', for example i wrote this example.

   

LCD_Start();
    LCD_ClearDisplay();
    LCD_WriteControl( LCD_CURSOR_BLINK);
    char8 ch='a';
    while(ch<='z'){
        if(ch=='o')
                    ch++;
        if(ch>'a'+16){
                LCD_Position(1,i++);
               
        }
        LCD_PutChar(ch++);
        CyDelay(20u);
  }
    LCD_WriteControl(LCD_CURSOR_HOME);

   

 

   

the cursor come to positio(0,0);

   

but if I use this code:

   

LCD_Start();
    LCD_ClearDisplay();
    LCD_WriteControl( LCD_CURSOR_BLINK);
    char8 ch='a';
    while(ch<='z'){
        if(ch=='o')
                    ch++;
        if(ch>'a'+16){
                LCD_Position(1,i++);
               
        }
        LCD_PutChar(ch++);
        CyDelay(20u);
  }   

   

LCD_PutChar('o');
    LCD_WriteControl(LCD_CURSOR_HOME);

   

the cursor don't go @home and in debug mode the system wait forever.

   

I attach the project.

0 Likes
CrGa_284461
Level 1
Level 1

Note. My LCD is 1602A by SHEZHEN EONE ELECTRONICs

0 Likes
CrGa_284461
Level 1
Level 1

I post my problem here!

   

thank you so much for all!

   

 

   

http://www.cypress.com/?app=forum&id=4749&rID=90385

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I posted one possible issue at

   

    

   

          http://www.cypress.com/?app=forum&id=4749&rID=90385

   

 

   

Regards, Dana.

0 Likes