Uhr Gen 4 Click Board
Uhr Gen 4 Click Board
Das Clock Gen 4 Click Board™ ist eine kompakte Zusatzplatine, die sowohl einen Taktgenerator als auch einen Multiplikator/Jitter-reduzierten Taktfrequenzsynthesizer enthält. Diese Platine verfügt über den CS2200-CP, eine analoge PLL-Architektur, die aus einem Delta-Sigma-Fractional-N-Frequenzsynthesizer von Cirrus Logic besteht. Dieses Taktgerät verwendet eine programmierbare Phasenregelschleife und ermöglicht Frequenzsynthese und Taktgenerierung aus einem stabilen Referenztakt. Es generiert einen PLL-Takt mit geringem Jitter aus einem externen Kristall, unterstützt sowohl I²C als auch SPI für die vollständige Softwaresteuerung und verfügt außerdem über einen konfigurierbaren Hilfstaktausgang. Dieses Click Board™ ist für MCU-Taktquellen oder für Anwendungen wie digitale Effektprozessoren, digitale Mischpulte und viele mehr geeignet.
Das Clock Gen 4 Click Board™ wird von einer mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System, das mit der mikroBUS™-Buchse ausgestattet ist.
How Does The Clock Gen 4 Click Board™ Work?
The Clock Gen 4 Click Board™ is based on the CS2200-CP, an analog PLL architecture comprised of a Delta-Sigma fractional-N frequency synthesizer from Cirrus Logic. The Delta-Sigma fractional-N frequency synthesizer has a very high resolution for Input/Output clock ratios, low phase noise, a wide range of output frequencies, and the ability to quickly tune to a new frequency. This synthesizer multiplies the timing reference clock by the value of N to generate a stable and low-jitter PLL clock available on the connector labeled as PLL Clock. The Clock Gen 4 Click Board™ also has another connector marked as AUX Clock that outputs a buffered version of one of the input/output clocks, or a status signal, depending on register configuration.
The analog PLL based frequency synthesizer uses a low-jitter timing reference clock as time and phase reference for the internal voltage controlled oscillator (VCO). The phase comparator compares the fractional-N divided clock with the original timing reference and generates a control signal that is filtered by the internal loop filter to generate the VCO's control voltage that sets its output frequency. The Delta-Sigma modulator modulates the loop integer divide ratio to get the desired fractional ratio between the reference clock and the VCO output. This allows fast lock times for a wide range of output frequencies without the need for external filter components.
The Clock Gen 4 Click Board™ provides the possibility of using both I2C and SPI interfaces with a maximum frequency of 100 kHz for I2C and 6 MHz for SPI communication. The selection can be performed by positioning SMD jumpers labeled as COMM SEL to an appropriate position. Note that all the jumpers must be placed to the same side, or else the Click board™ may become unresponsive. While the I2C interface is selected, the CS2200-CP allows the choice of the least significant bit (LSB) of its I2C slave address. This can be done by using the SMD jumper labeled as ADDR SEL.
The Clock Gen 4 Click Board™ is designed to be operated only with a 3.3V logic voltage level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels. However, the Click board™ comes equipped with a library that contains easy to use functions and an example code that can be used as a reference for further development.
SPECIFICATIONS
Type | Clock generator |
Applications | Can be used as an MCU clock source, or in applications like digital effects processors, digital mixing consoles, and many more. |
On-board modules | Clock Gen 4 Click is based on the CS2200-CP, an analog PLL architecture comprised of a Delta-Sigma fractional-N frequency synthesizer from Cirrus Logic. |
Key Features | High-performance analog/digital phase locked loop, clock generation/frequency synthesis and multiplier/jitter reduction, flexible control options, configurable auxiliary output, and more. |
Interface | I2C,SPI |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout on the Clock Gen 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | SCL | I2C Clock |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | SDA | I2C Data |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1-JP3 | COMM SEL | Left | Communication Interface Selection: Left position SPI, Right position I2C |
JP4 | ADDR SEL | Left | I2C Address Selection: Left position 0, Right position 1 |
CN1 | PLL | - | PLL Clock Output SMA Connector |
CN2 | AUX | - | Auxiliary Clock Output SMA Connector |
CLOCK GEN 4 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.1 | 3.3 | 3.5 | V |
PLL Clock Output Frequency | 6 | - | 75 | MHz |
Output Frequency Synthesis Resolution | 0 | - | ±0.5 | ppm |
Operating Temperature Range | -10 | - | +70 | °C |
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.
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.
Uhr Gen 4 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.