Clock Gen 5 Click Board
Clock Gen 5 Click Board
Key Features:
- Low power consumption, more reliable and vastly more versatile clocking solution, precision frequency from 1kHz to 68MHz, proprietary feedback loop, and more.
- Based on the LTC6903 - a low-power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz set through a 3-wire digital interface from Analog Devices.
- Can be used for applications such as MCU clock source, clock source for a switched capacitor filter, or general replacement for a DAC/VCO combination
- mikroBUS: SPI Interface
The Clock Gen 5 Click Board™ 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. The LTC6903 features a proprietary feedback loop that linearizes the relationship between digital control setting and frequency and provides a smaller, more reliable, and vastly more versatile clocking solution. The frequency between 1kHz and 68MHz is set by a 16-bit control word, typically accurate within 1.1% with a resolution of 0.1% or better. This Click Board™ is suitable for applications such as MCU clock source, clock source for a switched capacitor filter, or general replacement for a DAC/VCO combination.
The Clock Gen 5 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Clock Gen 5 Click Board™ 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.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
The library covers all the necessary functions to control the Clock Gen 5 Click Board™. The library performs a standard SPI interface communication.
Key Functions
void clockgen5_out_enable ( uint8_t en_out )
- Enable output function.void clockgen5_set_config ( uint8_t cfg )
- Set configuration function.void clockgen5_set_freq ( float freq )
- Set frequency function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes SPI, set RST and CS pin as outputs, begins to write log.
- Application Initialization - Initialization driver enables - SPI, set output configuration CLK + 180°, also write log.
- Application Task - (code snippet) This is an example that demonstrates the use of the Clock Gen 5 Click board™. In this example, we adjust different frequencies every 3 sec. Results are being sent to the USART Terminal where you can track their changes.
void application_task ( ) { clockgen5_set_freq( 12000.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 12.0 MHz ", _LOG_LINE ); Delay_ms( 3000 ); clockgen5_set_freq( 8000.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 8.0 MHz ", _LOG_LINE ); Delay_ms( 3000 ); clockgen5_set_freq( 5500.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 5.5 MHz ", _LOG_LINE ); Delay_ms( 3000 ); clockgen5_set_freq( 2700.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 2.7 MHz ", _LOG_LINE ); Delay_ms( 3000 ); clockgen5_set_freq( 800.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 0.8 MHz ", _LOG_LINE ); Delay_ms( 3000 ); clockgen5_set_freq( 200.0 ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " 0.2 MHz ", _LOG_LINE ); Delay_ms( 3000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- SPI
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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
The Clock Gen 5 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.
Clock Gen 5 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.