TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136780 times)
  2. FAT32 Library (69977 times)
  3. Network Ethernet Library (55948 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41183 times)
  7. GSM click (28987 times)
  8. PID Library (26419 times)
  9. mikroSDK (26372 times)
  10. microSD click (25381 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: 1404 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

DC Motor 2 click

0

DC MOTOR 2 click carries the TB6593FNG driver IC for direct current motors. With two pairs of screw terminals (power supply and outputs), the click board can drive motors with voltages from 2.5 to 13V (output current of up to 1.2 amps with peaks up to 3.2 amps) . The PWM signal drives the motor while the IN1 and IN2 pins provide binary direction signals that set the direction of the motor (clockwise or counter clockwise), or apply stop or short brake functions.

[Learn More]

Remote Weather Station with ClickCloud platform

0

The most popular topic with which we all start the day is the weather. You can measure temperature, humidity, ambient lighting and UV and IR indexes in real time, easily, with our Weather Station Kit. Access this data remotely by adding our G2C click–a reliable connection to the Click Cloud platform, a cloud-based rapid prototyping environment.

[Learn More]

CAN Isolator 3 click

0

CAN Isolator 3 Click is a compact add-on board that provides isolated CAN communication. This board features the MAX14882, an isolated CAN transceiver with an integrated transformer driver from Analog Devices. It is galvanically isolated between the device's CAN-protocol controller side (TDX, RDX) and the physical wires of the CAN network (CANH, CANL) cable-side/bus-side of the transceiver.

[Learn More]