ADF4351 controlled with ESP32

ref : https://github.com/Ryushane/ADF4351-ESP32

https://github.com/dfannin/adf4351

code test :

#include « ADF4351.h »

#include <SPI.h>

#define clock 4

#define data 6

#define LE 7

#define CE 10

ADF4351 adf4351(clock,data,LE,CE); // declares object PLL of type ADF4351

void setup() {

  Serial.begin(115200);

  adf4351.begin();

  // ref =25Mhz freq :41Mhz

  adf4351.WriteRegister(0x00580005); //  R5

  adf4351.WriteRegister(0xEC81FC); // R4

  adf4351.WriteRegister(0x000004B3); //  R3

  adf4351.WriteRegister(0x4E42); //  R2

  adf4351.WriteRegister(0x80080C9); //  R2

  adf4351.WriteRegister(0x3400C0); //  R1

  Serial.println(« All registers have benn written! »);

}

void loop() {

  // put your main code here, to run repeatedly:

}

Search

Popular Posts

  • QRZ.COM Page BIO

    Visu PDF Pages CSS .container{max-width:900px;margin:auto;font-family:Arial, Helvetica, sans-serif;} .card{background:#1e293b;color:#e5e7eb;padding:20px;border-radius:12px;margin-bottom:20px;box-shadow:0 5px 15px rgba(0,0,0,0.3);} .card h1{color:#38bdf8;margin-bottom:10px;} .card h2{color:#7dd3fc;border-bottom:1px solid #334155;padding-bottom:5px;} .badge{display:inline-block;background:#0284c7;color:white;padding:5px 10px;border-radius:8px;margin:4px 2px;font-size:14px;} .gallery {display: grid;grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));gap: 12px;margin-top: 10px;} .gallery img {width: 100%;height: auto;border-radius: 10px;box-shadow: 0 4px 10px rgba(0,0,0,0.4);}a{color:#38bdf8;} a:hover{text-decoration:underline;}#t_bio.biodiv {background-color:#FFFFFF}

Categories

Tags