TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136969 times)
  2. FAT32 Library (70081 times)
  3. Network Ethernet Library (56019 times)
  4. USB Device Library (46340 times)
  5. Network WiFi Library (41958 times)
  6. FT800 Library (41266 times)
  7. GSM click (29051 times)
  8. mikroSDK (26482 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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 click

Rating:

5

Author: MIKROE

Last Updated: 2020-05-25

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Clock generator

Downloaded: 2254 times

Not followed.

License: MIT license  

Clock Gen Click offers an ideal replacement for crystals, crystal oscillators, VCXOs, phase-locked loops (PLLs), and fanout buffers in cost-sensitive applications.

No Abuse Reported

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

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

Do you want to report abuse regarding "Clock Gen 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 Click

Clock Gen Click

Native view of the Clock Gen Click board.

View full image
Clock Gen Click

Clock Gen Click

Front and back view of the Clock Gen Click board.

View full image

Library Description

Library provides functions for communicating with device via I2C module, and many functions for user to easly set frequency of device.

Key functions:

  • void clockgen_generic_write ( uint8_t reg_adr, uint8_t write_data ) - Function for I2C write to device
  • uint8_t clockgen_generic_read ( uint8_t reg_adr ) - Function for I2C read from device
  • void clockgen_set_frequency ( uint8_t clk_num, uint8_t pll_num, uint32_t freq ) - Function for setting frequency to device
  • void clockgen_set_params ( uint8_t clk_pll_num, clockgen_params_t *param_group ) - Function for setting parameters to specific clock or pll
  • void clockgen_setup_multisyinth ( uint8_t clk_num, uint32_t divider, uint32_t num, uint32_t denom, uint8_t factor ) - Function for setting OMD
  • void clockgen_setup_pll ( uint8_t pll, uint8_t mult, uint32_t num, uint32_t denom ) - Function for setting FMD

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of I2C module
  • Application Initialization - Configures device to default function that enables clock 0 and disables all others
  • Application Task - Changes 4 different frequency i span of 5 seconds
void application_task ( )
{
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 1 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 3 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 10 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 5 );
    Delay_ms( 5000 );
}


The full application code, and ready to use projects can be found on our LibStock page.

Library Description

Library provides functions for communicating with device via I2C module, and many functions for user to easly set frequency of device.

Key functions:

  • void clockgen_generic_write ( uint8_t reg_adr, uint8_t write_data ) - Function for I2C write to device
  • uint8_t clockgen_generic_read ( uint8_t reg_adr ) - Function for I2C read from device
  • void clockgen_set_frequency ( uint8_t clk_num, uint8_t pll_num, uint32_t freq ) - Function for setting frequency to device
  • void clockgen_set_params ( uint8_t clk_pll_num, clockgen_params_t *param_group ) - Function for setting parameters to specific clock or pll
  • void clockgen_setup_multisyinth ( uint8_t clk_num, uint32_t divider, uint32_t num, uint32_t denom, uint8_t factor ) - Function for setting OMD
  • void clockgen_setup_pll ( uint8_t pll, uint8_t mult, uint32_t num, uint32_t denom ) - Function for setting FMD

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of I2C module
  • Application Initialization - Configures device to default function that enables clock 0 and disables all others
  • Application Task - Changes 4 different frequency i span of 5 seconds
void application_task ( )
{
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 1 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 3 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 10 );
    Delay_ms( 5000 );
    clockgen_set_frequency( CLOCKGEN_CLOCK_0, CLOCKGEN_PLLA, 5 );
    Delay_ms( 5000 );
}


Other mikroE Libraries used in the example:

  • I2C
  • 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.

Other mikroE Libraries used in the example:

  • I2C
  • 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

3D Hall 8 click

0

3D Hall 8 Click is a compact add-on board containing an ultra-small 3D-magnetic sensor for industrial and consumer applications.

[Learn More]

CAN FD 5 click

5

CAN FD 5 Click is a compact add-on board that contains a high-speed CAN transceiver that supports both CAN and CAN FD protocol types.

[Learn More]

2x20W Amp click

6

2x20W Amp click carries the MAX9744 stereo class D audio power amplifier from Maxim Integrated. This click brings the Class AB sound performance with Class D efficiency. The perfect combination for your speakers.

[Learn More]