MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
OPAMP Peripheral and Driver Overview

Peripheral features and how this peripheral works

The Operational Amplifier (OPAMP) module supports flexible amplifier application.

Features

How this peripheral works

  1. Configure the module clock to equal or less than 50MHz.
  2. Configure XBAR for the 4-bit window counter clock. When the counter clock is synchronized with the module clock, the frequency of the counter clock must be less than or equal to module clock frequency. When the counter clock is asynchronous with the module clock, the frequency of the counter clock must be less than half of module clock frequency.
  3. Configure OPAMP output pin and input pin according to use case.
  4. Set the rotation configuration sets, the configuration sets to use, power mode, load mode, and so on.
  5. Enable the configuration load, then OPAMP starts to work.
  6. After the configuration has been loaded, user could set new configuration and enable the load if necessary.

How this driver is designed to make this peripheral works

With OPAMP_Init, the OPAMP module could be set to a defined state and starts to work.

For runtime change, OPAMP driver provides two methods to configure the OPAMP module:

  1. Whole module configuration update by OPAMP_UpdateModuleConfig. This function sets all configurations and enables the configuration load, the new configuration is loaded at the time determined by load mode.
  2. Update specific rotation configuration sets by OPAMP_SetOneConfigSet. Application could call this function multiple times to configure different sets. After all desired sets configured, call OPAMP_EnableConfigLoad to load at proper time.

OPAMP driver also provides APIs to get and clear configuration load completion flags.

How to use this driver