SLAA833A May   2018  – October 2019 MSP430FR2353 , MSP430FR2355

 

  1.   How to Use the Smart Analog Combo in MSP430™ MCUs
    1.     Trademarks
    2. 1 Introduction
      1. 1.1 Smart Analog Combo (SAC) Concept
      2. 1.2 Single-Supply Amplifier Design Consideration
      3. 1.3 Smart Analog Combo Driver Library
    3. 2 Smart Analog Combo Operation Modes
      1. 2.1 General Purpose Mode
        1.       Example 1. Code Example for Smart Analog Combo General-Purpose Mode
      2. 2.2 Buffer Mode
        1.       Example 2. Code Example for Smart Analog Combo Buffer Mode
      3. 2.3 Noninverting PGA Mode
        1.       Example 3. Code Example for Smart Analog Combo Noninverting PGA Mode
      4. 2.4 Inverting PGA Mode
        1.       Example 4. Code Example for Smart Analog Combo Inverting PGA Mode
      5. 2.5 DAC Mode
        1.       Example 5. Code Example for Smart Analog Combo DAC Mode
    4. 3 Smart Analog Combo Interconnection Configuration
      1. 3.1 Smart Analog Combo Cascading
      2. 3.2 Smart Analog Combo Interconnection With Other Peripherals
    5. 4 Smart Analog Combo Use Cases in Sensing Applications
      1. 4.1 Use Smart Analog Combo in Smoke Detector
      2. 4.2 Use Smart Analog Combo in Current Loop
    6. 5 References
  2.   Revision History

DAC Mode

The SAC-L3 includes a 12-bit DAC. The DAC can be used as the reference voltage and also can work with the OA and PGA to drive the output pad directly. When using DAC to generate signal and drive other circuit, OA must be configured into buffer mode to improve the drive strength. The red highlighted part in Figure 8 shows the SAC DAC mode, in this mode, the 12-bit DAC and built-in OA must be enabled together, and PGA MSEL is set to floating status.

sac-dac-mode.gifFigure 8. Smart Analog Combo DAC Mode

Example 5 shows one code sequence of configuring the SAC into DAC mode with driver library API functions. In this code, the internal shared reference is selected as the DAC reference and the DAC always loads data from DACDAT at the positive edge of timer output TB2.1. The DAC module can generate an interrupt when DACIE is set, a set DACIFG bit indicate that the DAC is ready for new data. There are two device-specific references selected by DACSREF bits. The MSP430FR2355 MCU supports an internal shared reference and VCC as the DAC reference. The trigger signal for the DAC loading data is also device-specific, this code only shows one configuration and users change the configuration by changing API parameters. Example 5 shows only the configuration code for the SAC module. To make SAC work in DAC mode, users should also take care of other related things like internal shared reference setting, Timer_B2 setting, and interrupt service routine.