- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please help
project is attached. when i connect the programmer and program the chip or put in debug mode LCD_Char_PrintString() works.
if i removed the programmer and connected to power supply; LCD_Char_PrintString() doesn't show anything or if i put in debug without programming few LCD_Char_PrintString() doesn't show anything mostly first line.
working on 3.1 but my other program works which are using the same sub routines?
i found in lcd.c char8) '\0' = 0x00
void LCD_Char_1_PrintString(char8 const string[])
{
uint8 indexU8 = 1u;
char8 current = *string;
/* Until null is reached, print next character */
while((char8) '\0' != current)
{
LCD_Char_1_WriteData((uint8)current);
current = string[indexU8];
indexU8++;
}
}
** this problem may be similar as per page 58 HD44780 on CY8CKIT-049 of our forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I remember there could be an issue with the LCD initialization.
Try to insert a CyDelay() before and after LCD_Start().
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why are you using PSoc Creator 3.1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using Creator 3.x for PC with WIN_XP
otherwise Creator 4.0 hangs when editing in WIN_XP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i tried that also. i tried extended delays in LCD_Char_1_Init(); also.
my other program works which are using the same sub routines?
as per my knowledge string address and content data gets mismatched. why?
UNIT DISPLAY THIS
CyDelay(500);
LCD_Char_1_Start();
LCD_Char_1_ClearDisplay();
CyDelay(1000);
LCD_Char_1_Position(0u,0u);
LCD_Char_1_PrintString("" 10 e-3 "");
BUT UNABLE TO DISPLAY(display is blank)
CyDelay(500);
LCD_Char_1_Start();
LCD_Char_1_ClearDisplay();
CyDelay(1000);
LCD_Char_1_Position(0u,0u);
LCD_Char_1_PrintString("VATS ");
LCD_Char_1_Position(1u,0u);
LCD_Char_1_PrintString(" WATER ");
CyDelay(1000);
LCD_Char_1_Position(0u,0u);
LCD_Char_1_PrintString(" METER ");;
LCD_Char_1_Position(1u,0u);
LCD_Char_1_PrintString(" WDP 2.0");
CyDelay(250);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I replaced port 2 to port 0 for LCD, I see a flashing inscription SOLVE PROBLEM