clockgen3
2.0.0.0
|
Clock Gen 3 Click features a low power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz, set through a serial port.
We provide a library for the ClockGen3 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 compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for ClockGen3 Click driver.
void clockgen3_cfg_setup ( clockgen3_cfg_t *cfg );
CLOCKGEN3_RETVAL clockgen3_init ( clockgen3_t *ctx, clockgen3_cfg_t *cfg );
void clockgen3_set_cs_pin ( clockgen3_t *ctx, uint8_t state );
void clockgen3_generic_write ( clockgen3_t *ctx, uint8_t *data_buf, uint8_t len );
void clockgen3_set_freq ( clockgen3_t *ctx, float freq );
This example demonstrates the use of Clock Gen 3 click board.
The demo application is composed of two sections :
Initializes the driver and configures the click board.
Sets different frequencies every 3 seconds and displays the set frequency on the USB UART.
The full application code, and ready to use projects can be installed directly from compilers IDE(recommended) or found on LibStock page or mikroE GitHub accaunt.
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.