TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137081 times)
  2. FAT32 Library (70223 times)
  3. Network Ethernet Library (56095 times)
  4. USB Device Library (46414 times)
  5. Network WiFi Library (42032 times)
  6. FT800 Library (41378 times)
  7. GSM click (29109 times)
  8. mikroSDK (26557 times)
  9. PID Library (26487 times)
  10. microSD click (25486 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: 1407 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

EVE click - Example

0

This is a sample program which demonstrates the use of EVE click board. EVE click can be used to drive TFT with on board FT800 chip.

[Learn More]

Stepper 4 click

0

Stepper 4 click is a very versatile bipolar stepping motor driver. It features TB67S269FTG IC, fabricated with the BiCD process, allowing the Click board™ to handle significant voltage and current levels up to 35V and 1.2A. This IC has the integrated translator section, used to simplify the control: using simple step control inputs from the host MCU, the stepper motor can be driven in both directions, with the predetermined step sizes from the full step, up to 1/32 step.

[Learn More]

Clock Gen 3 click

0

Clock Gen 3 Click features a low power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz, set through a serial port.

[Learn More]