![]() |
PS_Fgen_FW
4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
|
Containing everything needed for the direct digital synthesis. More...
#include "../Configuration.h"#include "../Pins/Pins.h"#include <avr/interrupt.h>#include <avr/pgmspace.h>Go to the source code of this file.
Functions | |
| void | InitDDSTimer () |
| Initialize the DDS timer. | |
| void | StartDDSTimer () |
| Start the DDS timer. | |
| void | DisableDDSTimer () |
| Disable the DDS timer. | |
| void | DisableDDS1 () |
| Set the voltage of DDS channel 1 to zero. | |
| void | DisableDDS2 () |
| Set the voltage of DDS channel 2 to zero. | |
Variables | |
| volatile uint32_t | dds_channel1_increment |
| Variable holding the increment value of DDS channel 1. | |
| volatile uint32_t | dds_channel2_increment |
| Variable holding the increment value of DDS channel 2. | |
| volatile uint16_t | dds_channel1_waveTable [(1<< DDS_QUANTIZER_BITS)] |
| Array holding the waveform that should be created on DDS channel 1. | |
| volatile uint16_t | dds_channel2_waveTable [(1<< DDS_QUANTIZER_BITS)] |
| Array holding the waveform that should be created on DDS channel 2. | |
| volatile bool | dds_channel1_enabled |
| Variable holding the information if DDS channel 1 is enabled. | |
| volatile bool | dds_channel2_enabled |
| Variable holding the information if DDS channel 2 is enabled. | |
| const uint16_t SINE_WAVE_TABLE_12BIT[] | PROGMEM |
Containing everything needed for the direct digital synthesis.
| void InitDDSTimer | ( | ) |
Initialize the DDS timer.
This initializes all neccessary registers of the DDS timer and resets the phase accumulators.
|
extern |
Variable holding the increment value of DDS channel 1.
This value depends on the configured frequency of the channel.
|
extern |
Variable holding the increment value of DDS channel 2.
This value depends on the configured frequency of the channel.
| const uint16_t SAWTOOTH_WAVE_TABLE_12BIT [] PROGMEM |