Skip to content

microchip-pic-avr-examples/pic16f17576-dynamic-opamp-mplab-mcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microchip Technologies Inc.

Getting Started With the Operational Amplifier (OPAMP) Module

This repository provides example configurations for the OPAMP peripheral on the PIC16F17576 family of microcontrollers. PIC16F17576 features four internal operational amplifiers, each supporting multiple preset and custom configurations.

OPAMP Configurations

The following configurations are available from MPLAB® Code Configurator (MCC):


Figure 1. Direct Connect to Pins

  • Direct Connect to Pins – (all OPAMPS)

Configures the opamp to be used on its own with external discrete components, this configuration can also be used for custom feedback circuits.


Figure 2. Unity Gain Buffer

  • Unity Gain – (all OPAMPS)

Sets the op-amp as a voltage follower (unity gain buffer), providing high input impedance and low output impedance


Figure 3. Non-inverting Gain Amplifier

  • Non-Inverting Programmable Gain Buffer – (OPAMPs 1 and 2)

Utilizes the internal resistor ladder to set up the op-amp as a non-inverting amplifier with programmable gain


Figure 4. Inverting Gain Amplifier

  • Inverting Programmable Gain Buffer – (OPAMPs 1 and 2)

Enables the internal resistor ladder to configure the op-amp as an inverting amplifier with programmable gain

Related Documentation

Software Used

Hardware Used

Setup


Figure 5. Board Setup

Connect the hardware as follows:


Figure 6. Board Schematic

  • Each potentiometer provides an input signal to the OPAMP
  • The LED is used to indicate the output voltage

Operation

• On startup, the application displays a UART prompt

• The default configuration is "Direct Connect to Pins"

• Pressing the on-board button cycles through the following OPAMP modes:

  1. Direct Connect
  2. Unity Gain Buffer
  3. Non-Inverting Gain Amplifier
  4. Inverting Gain Amplifier

Refer to the descriptions above for details on each configuration. For further information, consult the PIC16F17576 data sheet, or watch the PIC16F17576 CNANO Unboxing Video.

Summary

This guide provides example configurations for using the Operational Amplifier (OPAMP) module on the PIC16F17576 microcontroller family. The examples use the MPLAB X IDE, XC8 compiler, and MPLAB Code Configurator (MCC) for setup. The application allows users to cycle through different OPAMP configurations using the on-board button, with each mode providing different signal processing capabilities. The setup and operation instructions, along with schematics, help users quickly implement and test the OPAMP features.

About

Quick example replicating the Q71 out of box code to demonstrate on the fly changes made by the OPAMP module.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •