Clock Gen 3 Click Board
Clock Gen 3 Click Board
The Clock Gen 3 Click Board™ features a low power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz, set through a serial port. The Clock Gen 3 Click Board™, an I2C configurable clock generator, features the LTC6904 from Analog Devices and requires no external components other than a power supply bypass capacitor, and it operates over a single wide supply voltage range of 2.7V to 5.5V. The LTC6904 features a proprietary feedback loop that linearizes the relationship between digital control settings and frequency.
It has many features that make it attractive for various applications such as a microcontroller clock source, clock source for a switched capacitor filter, or general replacement for a DAC/VCO combination.
Software Support
We provide a library for the Clock Gen 3 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.
Library Description
The library contains basic functions for working with the Clock Gen 3 Click Board™.
Key Functions
void clockgen3_set_freq( float freq )
- Sets Frequencyvoid clockgen3_config( uint8_t cfg )
- Configuration
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module and set GS pin as OUTPUT
- Application Initialization - Initializes driver init and configuration Clock Generator click
- Application Task - Adjusts different frequencies every 3000ms.
void application_task ( ) { mikrobus_logWrite( ">> Set Freq = 12.000 MHz", _LOG_LINE ); clockgen3_set_freq( 12000.0 ); Delay_ms( 3000 ); mikrobus_logWrite( ">> Set Freq = 8.000 MHz", _LOG_LINE ); clockgen3_set_freq( 8000.0 ); Delay_ms( 3000 ); mikrobus_logWrite( ">> Set Freq = 5.500 MHz", _LOG_LINE ); clockgen3_set_freq( 5500.0 ); Delay_ms( 3000 ); mikrobus_logWrite( ">> Set Freq = 2.700 MHz", _LOG_LINE ); clockgen3_set_freq( 2700.0 ); Delay_ms( 3000 ); mikrobus_logWrite( ">> Set Freq = 800 KHz", _LOG_LINE ); clockgen3_set_freq( 800.0 ); Delay_ms( 3000 ); mikrobus_logWrite( ">> Set Freq = 200 KHz", _LOG_LINE ); clockgen3_set_freq( 200.0 ); Delay_ms( 3000 ); mikrobus_logWrite( "----------------------------", _LOG_LINE ); } The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C library
- Conversions Library
- UART Library
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 3 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 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.