Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > LCD Help

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



LCD Help
Moderator:
ANCY

Post Reply
Follow this topic



LCD Help

daiengineering posted on 22 Apr 2012 1:27 PM PST
Member
2 Forum Posts

 

Hello! I'm new to PSOC programming, but when I tried to upload the following code 

 #include <device.h>

 
void main()
{
char outputstring[32];
LCD_Start();
    /* Place your initialization/startup code here (e.g. MyInst_Start()) */
 
    /* CYGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
    for(;;)
    {
LCD_Position(1,0);
LCD_PrintString("Hello World");
LCD_Position(0,0);
        /* Place your application code here. */
    }
}
 
 
Nothing appears on the LCD. I'm using the CY8CKIT-050 development board



Re: LCD Help

Bob Marlowe posted on 22 Apr 2012 01:38 PM PST
Top Contributor
1768 Forum Posts

That might have to do with something else within the project. Will you please upload the project here.

To do so, in PSoC Creator: Build -> Clean Project

File -> Create Workspace Bundle(minimal)

and then upload the resulting .Zip-file here.

 

Bob

 



Re: LCD Help

hli posted on 23 Apr 2012 02:52 AM PST
Top Contributor
675 Forum Posts

Did you check that the LCD is assigned to Port 2 (P2[0]..P2[6])?



Re: LCD Help

Gautam Das posted on 23 Apr 2012 03:15 AM PST
Cypress Employee
742 Forum Posts

Hi daiengineering,

 

According to your code, "Hello World" should be printed in the second line of the LCD.

Please make sure that the LCD is fixed firmly in the allocated header.

As hli has already suggested, assign the port to P2[6..0] in Pins tab of cydwr.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20