clockgen5
2.0.0.0
|
Clock Gen 5 Click is a compact add-on board that contains a digital programmable oscillator solution. This board features the LTC6903, a low-power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz set through a 3-wire SPI digital interface from Analog Devices.
We provide a library for the ClockGen5 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 ClockGen5 Click driver.
clockgen5_cfg_setup
Config Object Initialization function. clockgen5_init
Initialization function. clockgen5_out_enable
Enable output function. clockgen5_set_config
Set configuration function. clockgen5_set_freq
Set frequency function. This is an example that demonstrates the use of the Clock Gen 5 click board.
The demo application is composed of two sections :
Initialization driver enables - SPI, set output configuration CLK 180, also write log.
In this example, we adjusts different frequencies every 3 sec. Results are being sent to the Usart Terminal where you can track their changes.
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.