waveform3 2.0.0.0
|
Waveform 3 Click is a compact add-on board that represents a high-performance signal generator. This board features the AD9837, a low-power programmable waveform generator capable of producing sine, triangular, and square wave outputs from Analog Devices.
We provide a library for the Waveform3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for Waveform3 Click driver.
waveform3_cfg_setup
Config Object Initialization function. waveform3_init
Initialization function. waveform3_default_cfg
Click Default Configuration function. waveform3_set_mode
This function sets output mode, freq and phase channels of AD9837 waveform generator. waveform3_set_freq
This function sets desired frequency ( in Hz ) on desired freq channel. waveform3_set_phase
This function sets desired phase shift ( in degrees ) on desired phase channel. This demo app shows the basic capabilities of Waveform 3
click board. First, the sinusoidal wave is incremented to targeted frequency for visually pleasing introduction after which it changes between 4 modes of output.
The demo application is composed of two sections :
Application initializes the UART LOG and SPI drivers,
resets the device and sets frequency and phase shift to default values. In the end, the mode is set with the preferred freq and phase channel.
Task commences with the start frequency rising up to
the targeted one. When it reaches desired frequency, the mode changes every 5 seconds which includes: sinusoidal, triangular, DAC divided by 2 and DAC outputs respectively.
Waveform 3 click might not provide a high enough peak to peak signal on higher frequencies.
The user can freely implement custom buffer for the output stage.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.