Component: DDS DAC (AD9834/AD9833) (AD9834/AD9833) (Analog Output): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray..." |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 101: | Line 101: | ||
===DisableOutput=== | ===DisableOutput=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DisableOutput''' | ||
|- | |- | ||
| colspan="2" | Disables the DDS output (puts device in sleep mode). | | colspan="2" | Disables the DDS output (puts device in sleep mode). | ||
| Line 115: | Line 115: | ||
===EnableOutput=== | ===EnableOutput=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EnableOutput''' | ||
|- | |- | ||
| colspan="2" | Enables the DDS output. | | colspan="2" | Enables the DDS output. | ||
| Line 129: | Line 129: | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initializes the SPI bus and resets the DDS device. Call this once at startup. | | colspan="2" | Initializes the SPI bus and resets the DDS device. Call this once at startup. | ||
| Line 143: | Line 143: | ||
===Reset=== | ===Reset=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Reset''' | ||
|- | |- | ||
| colspan="2" | Resets the DDS device. This clears all registers and stops output. | | colspan="2" | Resets the DDS device. This clears all registers and stops output. | ||
| Line 157: | Line 157: | ||
===SetFrequency=== | ===SetFrequency=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetFrequency''' | ||
|- | |- | ||
| colspan="2" | Sets the output frequency in Hz. Frequency range depends on clock frequency (typically 0 Hz to ClockFreq/2). | | colspan="2" | Sets the output frequency in Hz. Frequency range depends on clock frequency (typically 0 Hz to ClockFreq/2). | ||
| Line 181: | Line 181: | ||
===SetPhase=== | ===SetPhase=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetPhase''' | ||
|- | |- | ||
| colspan="2" | Sets the phase offset. Phase value range: 0-4095 (0 to 360 degrees). | | colspan="2" | Sets the phase offset. Phase value range: 0-4095 (0 to 360 degrees). | ||
| Line 205: | Line 205: | ||
===SetWaveform=== | ===SetWaveform=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetWaveform''' | ||
|- | |- | ||
| colspan="2" | Sets the output waveform type: 0=Sine, 1=Triangle, 2=Square | | colspan="2" | Sets the output waveform type: 0=Sine, 1=Triangle, 2=Square | ||
| Line 225: | Line 225: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| Line 241: | Line 241: | ||
| colspan="2" | External clock frequency in Hz. Typical values: 25000000 (25 MHz) for AD9833, 75000000 (75 MHz) for AD9834. | | colspan="2" | External clock frequency in Hz. Typical values: 25000000 (25 MHz) for AD9833, 75000000 (75 MHz) for AD9834. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | SPI Connections | ||
|- | |- | ||
|- | |- | ||
| Line 290: | Line 290: | ||
| colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | | colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Analog Output |
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