Waveform 2 Click-Platine
Waveform 2 Click-Platine
Key Features:
- Niedriger Stromverbrauch, leistungsstarke Sinus-/Dreieck-/Rechteckausgänge, Möglichkeit zur Phasen- und Frequenzmodulation, integrierter Komparator und mehr.
- Basierend auf dem AD9834, einem 75 MHz DDS-Gerät mit geringem Stromverbrauch, das leistungsstarke Sinus-/Dreieck-/Rechteck-Ausgänge von Analog Devices erzeugen kann.
- Kann für leistungsempfindliche Anwendungen, zur Erzeugung von Frequenzstimuli/Wellenformen, zur Frequenzphasenabstimmung und -modulation und vieles mehr verwendet werden.
- mikroBUS: I2C- und SPI-Schnittstellen
Das Waveform 2 Click Board™ ist eine kompakte Zusatzplatine, die ein Gerät zur direkten digitalen Synthese für Wellenformgeneratoranwendungen enthält. Diese Platine verfügt über den AD9834, ein 75-MHz-DDS-Gerät mit geringem Stromverbrauch, das leistungsstarke Sinus-/Dreieck-/Rechteckausgänge von Analog Devices erzeugen kann. Es bietet die Möglichkeit zur Phasen- und Frequenzmodulation und verfügt über einen integrierten Komparator, der die Erzeugung eines Rechtecksignals zur Takterzeugung ermöglicht. Mit einer Taktrate von 75 MHz kann eine Auflösung von 0,28 Hz erreicht werden, während ein AD9834 mit einer Taktrate von 1 MHz auf eine Auflösung von 0,004 Hz abgestimmt werden kann. Dieses Click Board™ ist ein idealer Kandidat für stromsparende Anwendungen, Frequenzstimulus-/Wellenformerzeugung, Frequenzphasenabstimmung und -modulation und vieles mehr.
Das Waveform 2 Click Board™ wird von einer mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System, das mit der mikroBUS™-Buchse ausgestattet ist.
The Waveform 2 Click Board™ is based on the AD9834, a 75 MHz low power DDS device capable of producing high-performance sine/triangle/square outputs from Analog Devices. The AD9834 is capable of a broad range of simple and complex modulation schemes. These modulation schemes are fully implemented in the digital domain, allowing the accurate realization of complex modulation algorithms using DSP techniques. It contains a 16-bit control register accessible through the SPI serial interface that sets up the AD9834 as the user wants to operate it. The internal circuitry of the AD9834 consists of a numerically controlled oscillator (NCO), frequency and phase modulators, SIN ROM, a DAC, a comparator, and a regulator.
The outputs of the AD9834 are filtered by an RC network and then amplified via THS4551, a fully differential amplifier that offers an easy interface from single-ended sources to the differential output required by high-precision analog-to-digital converters from Texas Instruments. The output signal from the AD9834 follows two paths. One path is routed to an output connector labeled as Signal Out when the output waveform of the generator is sinusoidal or triangular, while the other path, routed to an output connector labeled as Square Out, is used when the output waveform of the generator is square.
In addition to the positive supply voltage requirement, the THS4551 amplifier also has a negative supply voltage, which is achieved by the ADM8829, a charge-pump voltage inverter used to generate a negative supply from a positive input from Analog Devices. This Click board™ also has an external oscillator of 75 MHz, which can be enabled by the EN pin of the mikroBUS™ socket, and represents the maximum frequency that can be accepted by the AD9834. The 75MHz clock produces the cleanest possible Sine waveform at high frequencies while on the other creates errors at low frequencies. In addition to these features, the Waveform 2 Click also has an EEPROM memory IC the 24AA64, an i2C configurable 64K serial EEPROM from Microchip that can be used for various storage applications.
The Waveform 2 Click Board™ communicates with MCU using the 3-Wire SPI serial interface that is compatible with standard SPI, QSPI™, MICROWIRE™ and operates at clock rates up to 40 MHz. Besides. It possesses additional functionality such as reset function, necessary during AD9834 initialization, implemented and routed at the RST pin of the mikroBUS™ socket.
The Waveform 2 Click Board™ is designed to be operated only with a 3.3V logic voltage level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels. However, the Click board™ comes equipped with a library that contains easy to use functions and an example code that can be used as a reference for further development.
Specifications
Type | Measurements |
Applications | Can be used for power-sensitive applications, frequency stimulus/waveform generation, frequency phase tuning and modulation, and many more. |
On-board modules | Waveform 2 Click is based on the AD9834, a 75 MHz low power DDS device capable of producing high-performance sine/triangle/square outputs from Analog Devices. |
Key Features | Low power consumption, high-performance sine/triangle/square outputs, capability for phase and frequency modulation, on-board comparator, and more. |
Interface | I2C,SPI |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V |
Pinout diagram
This table shows how the pinout on Waveform 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | EN | Enable | |
Reset | RST | 2 | RST | INT | 15 | NC | |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | SDA | I2C Data |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
CN1 | SIGNAL OUT | - | Sinusoidal/Triangular Output Signal |
CN2 | SQUARE OUT | - | Square Output Signal |
Waveform 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.3 | 3.3 | 3.6 | V |
Maximum Output Current | - | 3 | 4 | mA |
Maximum Output Frequency (with 75Hz EXT clock) | - | 25 | - | Hz |
Resolution | - | 10 | - | bits |
Update Rate | - | - | 75 | MSPS |
Operating Temperature Range | -40 | - | +105 | °C |
Software Support
We provide a library for the Waveform 2 Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library contains generic functions for working with the Waveform 2 Click™ board.
Key Functions
void waveform2_set_freq ( uint32_t freq )
- Function for setting the output frequency.void waveform2_sine_output ( void )
- Function for setting the sine output.void waveform2_triangle_output ( void )
- Function for setting the triangle output.
Example Description
The application is composed of three sections :
- System Initialization - Initialize the GPIO and communication structures.
- Application Initialization - Initialize the communication interface and configure the Click board™.
- Application Task - Predefined characters are inputed from the serial port. Depending on the character sent the signal frequency, waveform or amplitude will be changed.
- Command: [ + ] - Increase frequency [ - ] - Decrease frequency [ t ] - Triangle-shaped signal [ s ] - The signal in the form of a sinusoid
void application_task ( ) { char rx_data; uint32_t freq_data; if ( UART_Rdy_Ptr( ) ) { rx_data = UART_Rd_Ptr( ); } if ( rx_data > 0 ) { switch ( rx_data ) { case '+': { f += 10; freq_data = f << 14; waveform2_set_freq( freq_data ); rx_data = 0; mikrobus_logWrite( ">> Increasing the frequency ", _LOG_LINE ); break; } case '-': { if ( f <= 9 ) { f = 0; } f -= 10; freq_data = f << 14; waveform2_set_freq( freq_data ); rx_data = 0; mikrobus_logWrite( ">> Decreasing the frequency ", _LOG_LINE ); break; } case 't': { waveform2_triangle_output( ); rx_data = 0; mikrobus_logWrite( ">> Triangle output ", _LOG_LINE ); break; } case 's': { waveform2_sine_output( ); rx_data = 0; mikrobus_logWrite( ">> Sinusoid output ", _LOG_LINE ); break; } } } rx_data = 0; }
Additional Functions : aprox_freq_calculation( ) - This function is used to calculate the aproximate value that will be written to the frequency set register.
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART Library
- I2C Library
- SPI Library
- Conversions Library
Additional Notes and Information
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.
mikroSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Waveform 2 Click-Platine
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.