Page 1 of 1

PIC16F1788 and RA6 as I/O

Posted: Sat Aug 17, 2019 11:06 am
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 202 times

Re: PIC16F1788 and RA6 as I/O

Posted: Sat Aug 17, 2019 11:55 am
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

Re: PIC16F1788 and RA6 as I/O

Posted: Sat Aug 17, 2019 12:48 pm
by Frank607
Hi chipfryer27,

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

Many thanks for this quick answer.

Re: PIC16F1788 and RA6 as I/O

Posted: Sat Aug 17, 2019 1:23 pm
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