Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

I made a program for psoc 5 where i used the char lcd, and was working fine, then i made some modifications and everything but the LCD worked. i made a new program that print a simple hello message and it didn´t work, i try changing the port and the lcd and nothing happened. i exported the hello program to psoc  and it worked fine. 

   

anybody have an idea of whats going on.

   

 

   

thanks.

0 Likes
1 Solution
Bob_Marlowe
Expert II

Some pins of the PSoC5 Prototyping Kit are buffered with large capacitors. This will hinder LCD to work on those ports.

   

Look at schematic excerpt.

   

 

   

Bob

   

View solution in original post

0 Likes
29 Replies
rola_264706
Honored Contributor II
        Please send your program so we can check it.   
0 Likes
Anonymous
Not applicable

of corse, but the program couldn't be simplier :

   

#include <project.h>
int main()
{
//    CyGlobalIntEnable; /* Enable global interrupts. */
    LCD_Start();
    LCD_Init();
    LCD_Position(0,0);
    LCD_PrintString("Hola");
    for(;;){

   

    }
}

0 Likes
rola_264706
Honored Contributor II

I want to try it on my setup to see if it is wired correctly and your code is correct. You need both LCD_Start() and LCD_Init() is done in the LCD_Start() so it is not needed. You only need LCD_Start().

0 Likes
Anonymous
Not applicable

i try with and without the init() i didn´t work the conections are correct the same code works in a psoc 4

0 Likes
rola_264706
Honored Contributor II

Are you using a PSOC 5 LP kit?

0 Likes
rola_264706
Honored Contributor II

Here is a program that puts some data on the LCD screen. Hope it helps.

0 Likes
Anonymous
Not applicable

im using thhe prototping kit for psoc5lp

0 Likes
rola_264706
Honored Contributor II

Did my program work? Please send a pin out of the connections to the LCD module so I can check it.

0 Likes
rola_264706
Honored Contributor II

Here is the Pin out for the LCD device.

0 Likes
Anonymous
Not applicable

thanks for the program but it didn´t work, im buying a new kit to see if it is damaged

0 Likes
Anonymous
Not applicable

test it in a new module, didn't work either. it as the same connections

0 Likes
rola_264706
Honored Contributor II

Let us know if the new board fixes the issue. I have found these board to be very robust and I have never had an issue with them. I would check your wiring on the LCD module and make sure it is correct. It is easy to wire it incorrectly or miss a connection.  One other thing  some of the  components of the PSOC 4 and the PSOC 5 are different and could cause your problem. It would have been great to check your program but you never sent it.

0 Likes
Anonymous
Not applicable

This is the original program, it was working on a pcb i made.  but doesn't work an more, at least the LCD part, the rest is still working.

   

The problem appear to be the LCD is not being initialized.

0 Likes
EvPa_264126
Valued Contributor II

It works program

   

0 Likes
EvPa_264126
Valued Contributor II

A simple way to check

   

0 Likes
Anonymous
Not applicable

ill try that tonight thanks

0 Likes
rola_264706
Honored Contributor II

Your program works fine on my LCD I get a lot of 0's running through the screen as I don't have the rest of your hardware. It fails to work if the R/W pin is connected to the P2.1 it should be grounded for it to work correctly. Also my LCD is not the same as yours but shouldn't make any difference.

0 Likes
rola_264706
Honored Contributor II

I have work on it some more and I am getting a correct readouts.

0 Likes
rola_264706
Honored Contributor II

I am sending you this information as a help P2.1=D4 P2.2=D5 P2.3=D6 P2.4 =D7 P2.5=E P2.6=RS PS.7=R/w Your backlight I moved to P0.0 but you can move it to any free pin.  I am also sending your program back to you with these changes.

0 Likes
Anonymous
Not applicable

I check a simple hello program and i found out it works on ports 1 and 2 of the prototyping kit, but not on ports 3 and 0. 

0 Likes
Bob_Marlowe
Expert II

Some pins of the PSoC5 Prototyping Kit are buffered with large capacitors. This will hinder LCD to work on those ports.

   

Look at schematic excerpt.

   

 

   

Bob

   

View solution in original post

0 Likes
Anonymous
Not applicable

i made another test on port 2 and if i use a cpu clock higer than 24MHz some times i lost some characters (it still displays part of the message)

0 Likes
Bob_Marlowe
Expert II

There are delays in the code to access the LCD. Probably your device needs longer delays. You may change the code, but it will get overwritten on a new build, so make a copy, renale it and then apply changes.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

this is the program that some times displays part of the message. if a change cpu clock to 24MHz it displays correctly . On port 1 fails less, but still some times characters are missing

0 Likes
rola_264706
Honored Contributor II

What clock speed are you using?

0 Likes
rola_264706
Honored Contributor II

I don't know what your application is going to do or if you plan to run it on a battery source but the slower the clock the less power it will use.

0 Likes
rola_264706
Honored Contributor II

Also we have no ideal what LCD component you are using an what the SPEC's are so we don't know if it has a max speed for the display signals.

0 Likes
Anonymous
Not applicable

Power is not an issue in my application, but speed. im using te maximum permitted frequency on the pll: 76.8MHz. The LCD im using is JHD-162A. I´ve use it before without problems in PSoC 1 and 4.

0 Likes
rola_264706
Honored Contributor II

The program is running at 24Mhz which produces 76.8Mhz Pll. See attach Clock sheet. Also Port Two is the Port that should be used by the LCD component. Your Program is stable on my machine at 24Mhz clock. The PSOC 4 PLL runs at 45mhz a lot slower than the PSOC 5lp.

   

   

0 Likes