Analog Pin Configuration for PIC16F84A with Potentiomete

Use this section to discuss your embedded Flowcode projects.
Post Reply
r_teixeir
Posts: 7
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 1:45 pm
Has thanked: 1 time

Analog Pin Configuration for PIC16F84A with Potentiomete

Post by r_teixeir »

Hello everyone,
I'm working on a Flowcode 8 project using the PIC16F84A microcontroller. I noticed that when I try to use a potentiometer as an analog input, there is no option to configure the analog pin mapping for the selected pin.
Is this a limitation of the PIC16F84A within Flowcode, or am I missing a configuration step? Any guidance or workaround would be greatly appreciated.
Thanks in advance for your support!
Best regards,
Rodrigo L.
Attachments
Pic16F84A_Prog_AN_Leds.fcfx
(10.85 KiB) Downloaded 6 times

chipfryer27
Valued Contributor
Posts: 1733
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 386 times
Been thanked: 595 times

Re: Analog Pin Configuration for PIC16F84A with Potentiomete

Post by chipfryer27 »

Hi

As far as I remember, the 16F84A doesn't support ADC function on any pin.

You could use an external ADC or any one of a number of similar PICs that do support ADC.

Regards

r_teixeir
Posts: 7
Joined: Thu Dec 10, 2020 1:45 pm
Has thanked: 1 time

Re: Analog Pin Configuration for PIC16F84A with Potentiomete

Post by r_teixeir »

Thanks though! just checked the datasheet and u're totally right. My mistake

Best regards!

Rod

chipfryer27
Valued Contributor
Posts: 1733
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 386 times
Been thanked: 595 times

Re: Analog Pin Configuration for PIC16F84A with Potentiomete

Post by chipfryer27 »

Hi

Im not at a PC just now so can't offhand recommend a direct replacement, but there are many similar PICs that do support ADC.

Regards

BenR
Matrix Staff
Posts: 1978
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 519 times
Been thanked: 706 times

Re: Analog Pin Configuration for PIC16F84A with Potentiomete

Post by BenR »

I beleive the 16f88 is a pin compatible option with adc ability. There are loads though any 18pin 16f should be pin compatible.

Post Reply