Code:
while(1)
{
lcd_write_cmd(0x80);
lcd_write_data('E');
lcd_write_data('N'); // write "A" to LCD
lcd_write_data('T'); // write "B" to LCD
lcd_write_data('R'); // write "C" to LCD
lcd_write_data('Y');
lcd_write_cmd(0xC0); // Move cursor to line 2 position 1
lcd_write_data('D'); // write "1" to LCD
lcd_write_data('E'); // write "2" to LCD
lcd_write_data('N'); // write "3" to LCD
lcd_write_data('I');
lcd_write_data('E');
lcd_write_data('D');
}
How are you exiting this loop?
EDIT: I am surprised this code works, what happens if RC1 != 1 at the beginning? Does the PIC reset?