clockgen 2.0.0.0
main.c File Reference

ClockGen Click example. More...

#include "board.h"
#include "log.h"
#include "clockgen.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

ClockGen Click example.

Description

Clock Gen Click represent a replacement for crystals, crystal oscillators, VCXOs, phase-locked loops (PLLs), and fanout buffers. This click features an I2C configurable clock generator based on a PLL + high resolution MultiSynth fractional divider architecture which can generate any frequency up to 200 MHz with 0 ppm error. The chip on click is capable of generating synchronous or free-running non-integer related clock frequencies at each of its outputs (CLK0, CLK1, and CLK2), enabling one device to synthesize clocks for multiple clock domains in a design.

The demo application is composed of two sections :

Application Init

Configures device to default function that enables clock 0 and disables all others.

Application Task

Changes 4 different frequency in span of 5 seconds.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )