Hello, I'm having some issues with an LCD Display It initializes fine and writes the first output to the screen no problems but then when it enters the FOR loop it won't output anymore (LCD Cursor just blinks).... Until I Kill the power completely, then turn it back on. Resetting the PIC doesn't seem to do it. But for whatever reason a full power cycle seems to work. I'm wondering if its a timing issue. Here's the code. (mikroC)
void main()
{
char *text;
int deg, j;
TRISB = 0xFF;
TRISD = 0;
//ADCON1 = 0x80;
LCD_Init(&PORTD);
LCD_CMD(LCD_Clear);
LCD_Out(1, 1, "Encoder Reading Test");
delay_ms(5);
LCD_Cmd(LCD_Clear);
//LCD_Cmd(LCD_CURSOR_OFF);
for(;
{
deg = PORTB;
InttoStr(deg, text);
LCD_Out(1, 1, text);
}
}
Thanks for the help!!
void main()
{
char *text;
int deg, j;
TRISB = 0xFF;
TRISD = 0;
//ADCON1 = 0x80;
LCD_Init(&PORTD);
LCD_CMD(LCD_Clear);
LCD_Out(1, 1, "Encoder Reading Test");
delay_ms(5);
LCD_Cmd(LCD_Clear);
//LCD_Cmd(LCD_CURSOR_OFF);
for(;
{
deg = PORTB;
InttoStr(deg, text);
LCD_Out(1, 1, text);
}
}
Thanks for the help!!