TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Clock Gen 5 click

Rating:

5

Author: MIKROE

Last Updated: 2021-01-20

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Clock generator

Downloaded: 1691 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Clock Gen 5 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Clock Gen 5 click" changes.

Do you want to report abuse regarding "Clock Gen 5 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Clock Gen 5 Click

Clock Gen 5 Click

Native view of the Clock Gen 5 Click board.

View full image
Clock Gen 5 Click

Clock Gen 5 Click

Front and back view of the Clock Gen 5 Click board.

View full image

Library Description

The library covers all the necessary functions to control Clock Gen 5 Click board™. 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.

Examples 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 adjusts 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 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

VCP Monitor 6 Click

0

VCP Monitor 6 Click is a compact add-on board designed for precise digital power monitoring applications. This board features the INA780A, a 16-bit I2C-output digital power monitor with EZShunt™ technology from Texas Instruments. Capable of measuring currents up to 20A and supporting voltages up to 85V, it accurately monitors current, voltage, and temperature, calculating power, energy, and charge. Programmable registers allow for fine-tuning measurement precision, supporting continuous and triggered operation modes.

[Learn More]

Current click

0

This project is a simple demonstration of working with the <b>Current Click</b> board based on the MCP3201 12-bit Analog-to-Digital Converter (ADC) with SPI Interface. This example demosntrates measuring the current drawn by the consumer using a shunt resistor.

[Learn More]

SHT click

1

SHT click board caries new SHT3x-DIS by Sensirion. The board uses I2C bus to communicate with the target MCU and it can be powered with 3.3 V or 5 V power supply.

[Learn More]