So I'm trying to get my little LCD up and running on my PIC18F4550. I got putcXLCD to work just fine and I think my microchip is communicating fine. I can get putrsXLCD to work however trying to use putsXLCD in any form just causes garbage on the screen.
Here's what my main function looks like:
I'm having trouble wrapping my head around why putsXLCD would get garbage for string data. Is it because it's declared as a local variable? If I change the storage qualifier to rom and use putrsXLCD everything works fine.
Here's what my main function looks like:
Code:
void main(void)
{
const char* message = "Test Message";
OpenXLCD(EIGHT_BIT & LINES_5X7);
putsXLCD(message);
while(1) {}
}
I'm having trouble wrapping my head around why putsXLCD would get garbage for string data. Is it because it's declared as a local variable? If I change the storage qualifier to rom and use putrsXLCD everything works fine.