SLAA705A July   2016  – November 2019 MSP430FR2310 , MSP430FR2311

 

  1.   How to Use the Smart Analog Combo and Transimpedance Amplifier on MSP430FR2311
    1.     Trademarks
    2. 1 Introduction
    3. 2 Configuration of the Integrated Operational Amplifiers
      1. 2.1 Configuration of SAC_OA
        1.       Example 1. Code Example for Configuring SAC_OA
      2. 2.2 Configuration of TIA
        1.       Example 2. Code Example for Configuring TIA
    4. 3 Application Examples
      1. 3.1 SAC_OA as a Transimpedance Amplifier
      2. 3.2 TIA Module as a Transimpedance Amplifier
      3. 3.3 A Current Sensing System Demo
    5. 4 References
  2.   Revision History

Example 1. Code Example for Configuring SAC_OA

//Enable op amp functions on external pins GPIO_setAsPeripheralModuleFunctionInputPin (GPIO_PORT_P1, GPIO_PIN2 | GPIO_PIN3 | GPIO_PIN4, GPIO_TERNARY_MODULE_FUNCTION); //Select external pins for both positive and negative inputs SAC_OA_init(SAC0_BASE, SAC_OA_POSITIVE_INPUT_SOURCE_EXTERNAL, SAC_OA_NEGATIVE_INPUT_SOURCE_EXTERNAL); //Select low speed and low power mode SAC_OA_selectPowerMode(SAC0_BASE, SAC_OA_POWER_MODE_LOW_SPEED_LOW_POWER); // Enable OA SAC_OA_enable(SAC0_BASE); // Enable SAC SAC_enable(SAC0_BASE);