Component: DDS DAC (AD9834/AD9833) (AD9834/AD9833) (Analog Output)
From Flowcode Help
Jump to navigationJump to search
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Analog Output |
Contents
DDS DAC (AD9834/AD9833) component
Component to drive AD9834 and AD9833 Direct Digital Synthesis (DDS) waveform generator ICs via SPI interface. These devices can generate sine, triangle, and square wave outputs with programmable frequency and phase. Compatible with AD9833 and AD9834 devices.
Detailed description
No detailed description exists yet for this component
Examples
Auto Detect Port Number
This example auto detects and opens a COM Port based on preassigned USB Identifiers VID/PID.
For a known device the VID and PID can be found via Windows device manager.
Macro reference
DisableOutput
| DisableOutput | |
| Disables the DDS output (puts device in sleep mode). | |
| Return | |
EnableOutput
| EnableOutput | |
| Enables the DDS output. | |
| Return | |
Initialise
| Initialise | |
| Initializes the SPI bus and resets the DDS device. Call this once at startup. | |
| Return | |
Reset
| Reset | |
| Resets the DDS device. This clears all registers and stops output. | |
| Return | |
SetFrequency
SetPhase
| SetPhase | |
| Sets the phase offset. Phase value range: 0-4095 (0 to 360 degrees). | |
| Phase | |
| Phase value: 0-4095 (0 to 360 degrees) | |
| Register | |
| Phase register to use: 0 or 1 | |
| Return | |
SetWaveform
| SetWaveform | |
| Sets the output waveform type: 0=Sine, 1=Triangle, 2=Square | |
| WaveformType | |
| Waveform type: 0=Sine, 1=Triangle, 2=Square | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DAC_AD9834_AD9833.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DAC_AD9834_AD9833.fcfx