volatile uint16_t | sysDacModule_Initialize (void) |
DAC Module Base Register Initialization. More... | |
volatile uint16_t | sysDacOutput_Initialize (volatile uint16_t dacInstance, volatile uint16_t initValue) |
Initializes a user specified DAC instance with DAC output enabled. More... | |
volatile uint16_t | sysDacOutput_Enable (volatile uint16_t dacInstance) |
volatile uint16_t | sysDacOutput_Disable (volatile uint16_t dacInstance) |
DPSK3 uses one of the available on-chip Digital-to-Analog Converters (DAC) to generate a dynamic, analog output signal, which can be used for enhanced debugging of high-speed processes such as control output monitoring.
uint16_t sysDacModule_Initialize | ( | void | ) |
DAC Module Base Register Initialization.
This function initializes the DAC module base registers for being operated by the auxiliary oscillator at an input clock frequency of 500 MHz.
In this application the DAC is used to provide a constant reference voltage of VDD/2 = 1.65 V to the external current sense shunt amplifier devices. Neither, built-in comparator nor Pulse-Density Modulator (PDM) ramp generator are used.
Definition at line 39 of file init_dac.c.
volatile uint16_t sysDacOutput_Disable | ( | volatile uint16_t | dacInstance | ) |
volatile uint16_t sysDacOutput_Enable | ( | volatile uint16_t | dacInstance | ) |
Definition at line 99 of file init_dac.c.
uint16_t sysDacOutput_Initialize | ( | volatile uint16_t | dacInstance, |
volatile uint16_t | initValue | ||
) |
Initializes a user specified DAC instance with DAC output enabled.
dacInstance | Index of the selected DAC Instance (1=DAC1, 2=DAC2, etc.) |
initValue | Integer value at startup of the DAC peripheral instance |
This function clears all registers of the declared DAC instance and initializes the registers required by a static Digital-to-Analog Converter output with the given default values.
Definition at line 71 of file init_dac.c.