PIC16F1788 and RA6 as I/O

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

PIC16F1788 and RA6 as I/O

Post by Frank607 »

PIC16F1788 and RA6 as I/O

I have a PIC16F1788 and I have some problems with port RA6 as an I/O port.

I have 8 switches on POARTA they are all working except on RA6. Also when I connect pin RA6 directly to 5V I get no reaction from this pin.

I have made a simple LED flasher to test these port. (see attachment) RA5 is working and RA6 not.

Is there something in the config of this chip what I must change? Or is there something wrong with the .fcd file?
Simple LED Flasher for testing.fcfx
(11.1 KiB) Downloaded 177 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 658
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 203 times
Contact:

Re: PIC16F1788 and RA6 as I/O

Post by chipfryer27 »

Hi

Looking at your program and configuration I see that you have Clock Out = Enabled.
This will output a clock on Port RA6. Try Disabling this in config.

Hope this helps
Regards

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: PIC16F1788 and RA6 as I/O

Post by Frank607 »

Hi chipfryer27,

Yes this was the problem. Again something learned :-)

Many thanks for this quick answer.

chipfryer27
Valued Contributor
Valued Contributor
Posts: 658
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 203 times
Contact:

Re: PIC16F1788 and RA6 as I/O

Post by chipfryer27 »

Hi

I've done many such things and most times "I can't see the wood for the trees" :)

Glad it's working.

Regards

Post Reply