Clock Gen 4 Click Board
Clock Gen 4 Click Board
The Clock Gen 4 Click Board™ is a compact add-on board that contains both a clock generator and a multiplier/jitter reduced clock frequency synthesizer. This board features the CS2200-CP, an analogue PLL architecture comprised of a Delta-Sigma fractional-N frequency synthesizer from Cirrus Logic. This clocking device utilizes a programmable phase lock loop and allows frequency synthesis and clock generation from a stable reference clock. It generates a low-jitter PLL clock from an external crystal, supports both I²C and SPI for full software control, and also has configurable auxiliary clock output. This Click Board™ is suitable for MCU clock source, or in applications like digital effects processors, digital mixing consoles, and many more.
The Clock Gen 4 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 4 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 covers all the necessary functions to control the Clock Gen 4 Click Board™. User can use functions that allow writting to different registers in order to apply different settings or the ratio between the output signal and the input clock, or to read data using I2C communication exclusively.
Key Functions
void clockgen4_dev_ctl ( uint8_t dev_ctl );
- Function is used to write to Device Control register in order to apply settings.void clockgen4_dev_cfg ( uint8_t dev_cfg );
- Function is used to write to Device Configuration 1 register in order to apply settings.uint32_t clockgen4_set_ratio ( float ratio );
- Function is used to set the ratio between the output signal and the input clock.
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C and SPI , sets CS pin as output and start to write log.
- Application Initialization - Initalizes SPI or I2C driver, applies default settings and adjusted ratio to obtain a frequency
- Application Task - Demonstrates use of Clock Gen 4 click board by changeing output channel every two seconds.
void application_task ( ) { clockgen4_dev_ctl ( CLOCKGEN4_AUX_OUT_DIS | CLOCKGEN4_CLK_OUT_EN ); mikrobus_logWrite( " PLL Clock ", _LOG_LINE ); mikrobus_logWrite( " output enabled! ", _LOG_LINE ); mikrobus_logWrite( "---------------------", _LOG_LINE ); Delay_ms( 1000 ); clockgen4_dev_ctl ( CLOCKGEN4_AUX_OUT_EN | CLOCKGEN4_CLK_OUT_DIS ); mikrobus_logWrite( " AUX Clock ", _LOG_LINE ); mikrobus_logWrite( " output enabled! ", _LOG_LINE ); mikrobus_logWrite( "---------------------", _LOG_LINE ); Delay_ms( 1000 ); } The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- SPI
- UART
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
The Clock Gen 4 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 4 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.