PIC16F527 and FC10
-
- 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
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?
-
- Valued Contributor
- Posts: 1453
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 135 times
- Been thanked: 707 times
Re: PIC16F527 and FC10
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?
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?
-
- Valued Contributor
- Posts: 1453
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 135 times
- Been thanked: 707 times
Re: PIC16F527 and FC10
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?
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?
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times