• Menu
  • Product
  • Email
  • PDF
  • Order now
  • Function Generator Using DAC8

    • SLAAEL1 January   2025 MSPM0C1106 , MSPM0G3507 , MSPM0L1306

       

  • CONTENTS
  • SEARCH
  • Function Generator Using DAC8
  1.   1
  2. 1 Description
  3. 2 Required Peripherals
  4. 3 Compatible Devices
  5. 4 Design Steps
  6. 5 Design Considerations
  7. 6 Software Flow Chart
  8. 7 Application Code
  9. 8 Results
  10. 9 Additional Resources
  11. 10E2E
  12. IMPORTANT NOTICE
search No matches found.
  • Full reading width
    • Full reading width
    • Comfortable reading width
    • Expanded reading width
  • Card for each section
  • Card with all content

 

Subsystem Design

Function Generator Using DAC8

1 Description

This DAC8 function generator subsystem example shows how to implement a basic function generator to output a sine wave using the integrated DAC8, a timer triggered DMA, and an OPAx module. A 256-point sine wave data table written in the code is loaded to the DAC8 about every 40μs using a timer to trigger the DMA transfers. This generates an approximate 98Hz, 256-point sine wave. The OPA is used to buffer the DAC output and route the signal to an external pin, PA22 (OPA0_Out).

MSPM0G3507, MSPM0L1306 DAC8 Function Generator Block
                    Diagram Figure 1-1 DAC8 Function Generator Block Diagram

2 Required Peripherals

Table 2-1 describes the required integrated peripherals.

Table 2-1 Required Peripherals
Subblock Functionality Peripheral Use Notes
DAC8 1 × COMP Shown as COMP_0_INST in code

DMA

1 × DMA

Channel

Shown as DMA_CH0 in code
Buffer 1 × OPA Shown as OPA_0_INST in code
Timer 1 × TIMG Shown as TIMER_0_INST in code

3 Compatible Devices

Based on the requirements shown in Table 2-1, the example code is compatible with the devices shown in
Table 3-1.

Table 3-1 Compatible Devices
Compatible Devices EVM
MSPM0L13x LP-MSPM0L1306
MSPM0Gx LP-MSPM0G3507
MSPM0Lx22x LP-MSPM0L2228

 

Texas Instruments

© Copyright 1995-2025 Texas Instruments Incorporated. All rights reserved.
Submit documentation feedback | IMPORTANT NOTICE | Trademarks | Privacy policy | Cookie policy | Terms of use | Terms of sale