Anonymous
Not applicable
Apr 22, 2012
03:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 22, 2012
03:27 PM
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
Labels
- Labels:
-
PSoC 5LP
3 Replies
Apr 22, 2012
03:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 22, 2012
03:38 PM
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
Apr 23, 2012
04:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 23, 2012
04:52 AM
Did you check that the LCD is assigned to Port 2 (P2[0]..P2[6])?
Anonymous
Not applicable
Apr 23, 2012
05:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 23, 2012
05:15 AM
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.