This is a basic example program to use the Si5351 programmable clock generator.
Communication and configuration loading is done through the I²C protocol.
This code is written for an STM32F030 MCU but can be adapted to any other MCU with I²C capabilities.
In this example program, output CLK0 of the Si5351 module generates a 300kHz clock.
STM32F030 Pin | Si5351 Pin |
---|---|
PB6 | I²C SCL |
PB7 | I²C SDA |
GND | GND |
3.3V | VIN |
stm32f030 datasheet
stm32f030 reference manual
Si5351 datasheet
Si5351 additional info on registers