/*! * @defgroup DAC * @brief Digital to analog conversion
DAC pin on the MSPM0G3507
Pin Description
PA15 DAC digital to analog output
* @{*/ /** * @file DAC.h * @brief Initialize 12-bit built-in DAC * @details DAC output, 12-bit precision
* The DAC range is 0 to 2.5V.
* @version ECE319K v1.0 * @author Daniel Valvano and Jonathan Valvano * @copyright Copyright 2023 by Jonathan W. Valvano, valvano@mail.utexas.edu, * @warning AS-IS * @note For more information see http://users.ece.utexas.edu/~valvano/ * @date August 13, 2023
DAC pin on the MSPM0G3507
Pin Description
PA15 DAC digital to analog output
******************************************************************************/ #ifndef __DAC_H__ #define __DAC_H__ /** * Initialize 12-bit DAC output on PA15 * @param none * @return none * @see DAC_Out() * @brief Initialize 12-bit DAC * @note Range is 0 to 3.3V */ void DAC_Init(void); /** * Output to 12-bit DAC, 0 to 2.5V range * @param data is 12-bit data * @return none * @see DAC_Init() * @brief Output to DAC */ void DAC_Out(uint32_t data); #endif /** @}*/