PIC16F527 and FC10

For general Flowcode discussion that does not belong in the other sections.
Post Reply
alanwms
Posts: 133
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

PIC16F527 and FC10

Post by alanwms »

I see that the 16F527 has internal operational amplifiers. I started a new project to look at this and can't figure out how to use these peripherals. Do we have examples or info on this?

mnfisher
Valued Contributor
Posts: 1453
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 135 times
Been thanked: 707 times

Re: PIC16F527 and FC10

Post by mnfisher »

You'll need to handle the Analog peripheral setup in C by accessing the relevant registers..

APFCON, CM1CON0/CM2CON0 and OPACON

to:

Enable the op amp
Configure input selection
Enable output routing
Set gain mode

Do you have a specific use in mind?

alanwms
Posts: 133
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: PIC16F527 and FC10

Post by alanwms »

Sure - I want to setup a gain of around 25:1 so I can read a low signal. I'm not proficient writing C code to achieve my goal.

mnfisher
Valued Contributor
Posts: 1453
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 135 times
Been thanked: 707 times

Re: PIC16F527 and FC10

Post by mnfisher »

The documentation (datasheet) verges on the flimsy here - a little on the thin side.....

Apart from table 16-16 showing unity gain mode - there is little info (apart from two bits in OPACON to enable the op-amps)

Looking at the https://ww1.microchip.com/downloads/en/ ... 03280A.pdf document - reveals a lot more control - but the registers mentioned (for example OPA1CON0 don't seem to be present on the PIC16F527.

Do you have any info on it?

mnfisher
Valued Contributor
Posts: 1453
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 135 times
Been thanked: 707 times

Re: PIC16F527 and FC10

Post by mnfisher »

Seems o be more set up as a comparator than an op-amp
Martin

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC16F527 and FC10

Post by chipfryer27 »

Hi

This document is a bit more applicable.

Regards
TB3132.pdf
(271.09 KiB) Downloaded 13 times

alanwms
Posts: 133
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: PIC16F527 and FC10

Post by alanwms »

Thanks People!
On the flip side, do you know of better choices for a uP with opamp capacity?

mnfisher
Valued Contributor
Posts: 1453
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 135 times
Been thanked: 707 times

Re: PIC16F527 and FC10

Post by mnfisher »

PIC16F176x or PIC16F177x series might be worth a look...

Post Reply