PIC18F4550 Interfacing with LCD using XC8 compiler

Ian Rogers

Joined Dec 12, 2012
1,136
The builtin __delay_ms() has never worked with 16 bit parameters on the XC8 compile for pic18's... But I'm on the latest V2.05 and it appears to be fixed..

I use pic16's and has always accepted 16 bit parameters..
 

Ian Rogers

Joined Dec 12, 2012
1,136
Just for closure... The memcpypgm2ram() was used in C98... It has been abandoned in C99 and simply memcpy() works.. Should have known.. Pitfalls of downloading XC8 v2.05...
 

bennyyio

Joined Jun 5, 2023
1
okay guys, I just solved the problem by changing the code offset in the properties section, from 100 to 1000.
Now "unchanged default works well and LCD displays just fine.

I feel bad for not checking this ahead and wasted so much of you guys time. But I still appreciate those who helped me in the process!
Hello, i am also trying to do pic18f4550 interfacing lcd and keypad. Can you send your file here? As i am getting errors such as showing question marks and arrows on my lcd instead of character.
 
Top