You are here

Cant get LCD screen to work with Psoc 3 firsttouch starter kit. | Cypress Semiconductor

Cant get LCD screen to work with Psoc 3 firsttouch starter kit.

Summary: 32 Replies, Latest post by zeta on 28 Mar 2013 09:04 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
Jase's picture
User
21 posts

 Hej 

 I cant get my LCD screen to work at all. I have followed the example in the pdf file.

http://www.cypress.com/?docID=33243

set it up by trying to use port 6 or port 0 but it will still not work. the program code is copied directly from the example and doesnt give any errors.

I am using a 1k potmeter for the display. 

have moved the jumper so i get a 5V output from VDD.

when i build nothing happens on the screen. when build is finished i unplug the psoc 3 from the pc and plug it in again, nothing happens.

what could be the problem?

hope you guys can help

regards Jason

user_1377889's picture
User
10803 posts

What kind of LCD module are you using on the firsttouch kit and which usermodule are you using?

If you do not mind, post your complete project here, so that we all can have a look at.

To do so, use "File -> Create Workspace Bundle (minimal)" and upload the resulting .zip file here using ms internet explorer (NOT CHROME!!)

user_14586677's picture
User
7648 posts

The LCD must be 44780 controller compatible for starters. Also the project

is available on opening screen under Examples and Kits, to make sure you

have a  good starter project. LCD contrast adjustment also must be done

with a pot.

 

Best to post your project, and the schematic you have implemented.

 

Regards, Dana.

Jase's picture
User
21 posts

 I have tried two lcd screens.

MDL-16265
http://www.alldatasheet.com/datasheet-pdf/pdf/165398/VARITRONIX/MDL-1626...

DEM20485

http://www.gaw.ru/pdf/lcd/lcm/Display/char/DEM20485SYH-LY.PDF

Pin connection.

P6_0 - DB4 - pin 11 on lcd
P6_1 - DB5 - pin 12 on lcd
P6_2 - DB6 - pin 13 on lcd
P6_3 - DB7 - pin 14 on lcd
P6_4 - E      - pin 6 on lcd
P6_5 - RS   - pin 4on lcd
P6_6 - R/!W - pin 5 on lcd

i have also tried port 0.

P0_0 - DB4
P0_1 - DB5
P0_2 - DB6
P0_3 - DB7
P0_4 - E
P0_5 - RS
P0_6 - R/!W

 

I have attached the program as instructed. if you need any further information let me know.

user_14586677's picture
User
7648 posts

Display is compatible, you are connecting a pot to Vdd, other side to Vss, and wiper to Vo to adjust

contrast ? Also your project settings are 5V, as display is 5V.

 

You have the right pin numbers in post, you sure you got pin 1 orientation on display left side of

pins when display is oriented with pin connection holes at top ?

 

You issued

 

LCD_Char_Init( );

LCD_Char_Start( );

 

Do not use chrome to post a project, your project did not get posted.

 

Regards, Dana.

user_1377889's picture
User
10803 posts

You forgot the project...

 

Bob

Jase's picture
User
21 posts

I have uploaded it now with explore

user_14586677's picture
User
7648 posts

First the LCD settings must be -

 

Jase's picture
User
21 posts

Have set it to none.. doesnt change anything.

 

 

Jase's picture
User
21 posts

Dana:

I am using a 1k Pot that is connected to VDD, pin 3 on lcd(vo) and vss.

I have moved the jumper so i get 5V at VDD. the jumper is in position 2 and 3.

the display is marked 16 in one end. so the other ends first pin is connected to gnd.

 

user_14586677's picture
User
7648 posts

You had a couple of double underscores in f() api names used, this works -

 

#include <device.h>
#include "LCD.h"

uint8 i = 0;

void main() {

    LCD_Init( );
    LCD_Start( );

    LCD_Position(0, 0);                             //Positions the cursor
    LCD_PrintString("Hello World");                 /*Prints the null terminated string Hello World at (0,0)*/

    for(;;) {

        CyDelay(1000);                                 //1 sec Delay
        LCD_Position(1, 0);
        LCD_PrintNumber(i);                         //Prints the value of i
        i++;
    }
}

 

Regards, Dana.

Log in to post new comments.