Advertisement
Tamerby1

Untitled

Aug 31st, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include "si5351.h"
  2. #include "Wire.h"
  3. Si5351 si5351;
  4. void setup() {
  5.   Serial.begin(57600);
  6.  
  7.   si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0);
  8.   // Set CLK0 to output 14 MHz with a fixed PLL frequency
  9.   si5351.set_pll(SI5351_PLL_FIXED, SI5351_PLLA);
  10.  
  11.   // Set CLK1 to output 20 MHz
  12.   si5351.set_freq(1000000000ULL, 0ULL, SI5351_CLK1);
  13. }
  14.  
  15. //long oldPosition  = 1000;
  16.  
  17. void loop() {
  18.     delay(1000);
  19.       serial.println(millis());
  20.   si5351.set_freq(1000000000, SI5351_PLL_FIXED, SI5351_CLK0);
  21.   serial.println(millis());
  22. Serial.println("Konec");
  23. while(1)
  24.  
  25.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement