SPC  Version 0.9.5
 All Files Functions Groups Pages
DAC0Frequency/DAC1Frequency

The DACnFrequency controls the generator frequency for the analog output pins O0/O1 for DACnModes DAC_MODE_SINEWAVE, DAC_MODE_SQUAREWAVE, DAC_MODE_SAWPOSWAVE, DAC_MODE_SAWNEGWAVE, DAC_MODE_TRIANGLEWAVE, and DAC_MODE_PWMVOLTAGE.

The available frequency range is 1 - 8000 Hz.

DAC0Mode = DAC_MODE_SINEWAVE; // use sine wave output
DAC0Frequency = 4000; // 4khz frequency.
DAC0Voltage = 1024; // full range amplitude