Page 1 of 1

PIC18F26K80 LCD wont work on PORTC

Posted: Thu May 30, 2019 1:35 am
by Zane
Hi,

I have tried to connect an LCD display to PORTC pins 0-5 and it will not work. I have connected it to PORTB with no problems. I have also tried with the same program using a PIC16F823 and connected the display to both PORTB and PORTC and it works ok on both ports.

Thanks

Re: PIC18F26K80 LCD wont work on PORTC

Posted: Thu May 30, 2019 1:10 pm
by Benj
Hello,

Have you tried using the port C pins for simple digital outputs. This should hopefully give you an idea about which specific pin is not working correctly and then we can go through the datasheet looking for what might be causing the problem.

One thing I have noticed is the secondary OSC is on PortC and is enabled in your config settings.

Re: PIC18F26K80 LCD wont work on PORTC

Posted: Thu May 30, 2019 4:32 pm
by QMESAR
Please see this topic,
I am quite sure your pin RC0 and RC1 is not working and the lcd also not :D
On the 26K80 you have to set one settings as digital in the configuration to get RCO and RC1 to work as digital pins !

viewtopic.php?f=76&t=21157

Re: PIC18F26K80 LCD wont work on PORTC

Posted: Fri May 31, 2019 12:05 pm
by Zane
Hi Guys,

Thanks for your help here, got it working fine now. :D