PIC18F26K80 LCD wont work on PORTC

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

PIC18F26K80 LCD wont work on PORTC

Postby Zane » Thu May 30, 2019 1:35 am

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
Attachments
Flowcode1.fcfx
(9.51 KiB) Downloaded 21 times

User avatar
Benj
Matrix Staff
Posts: 14151
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: PIC18F26K80 LCD wont work on PORTC

Postby Benj » Thu May 30, 2019 1:10 pm

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.
These users thanked the author Benj for the post:
Zane (Fri May 31, 2019 12:04 pm)
Rating: 5.56%
 

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1089
Joined: Sun Oct 05, 2014 3:20 pm
Has thanked: 334 times
Been thanked: 544 times
Contact:

Re: PIC18F26K80 LCD wont work on PORTC

Postby QMESAR » Thu May 30, 2019 4:32 pm

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
These users thanked the author QMESAR for the post:
Zane (Fri May 31, 2019 12:04 pm)
Rating: 5.56%
 

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

Re: PIC18F26K80 LCD wont work on PORTC

Postby Zane » Fri May 31, 2019 12:05 pm

Hi Guys,

Thanks for your help here, got it working fine now. :D
These users thanked the author Zane for the post:
Benj (Fri May 31, 2019 12:16 pm)
Rating: 5.56%