Correct documentation

Made som changes to docs and comments to be more accurate
This commit is contained in:
Marco Vitchi Thulin 2024-01-23 10:25:45 +01:00
parent 0b234caef8
commit 81b93a2372
2 changed files with 15 additions and 2 deletions

View file

@ -4,5 +4,5 @@ STM32 | ATTINY85 | ADF4350
----- | -------- | -------
PA02 | | LE
PA05 (SPI SCK)| PB2 | CLK
PA07 (SPI MOSI)| PB0 | DATA
PA07 (SPI MOSI)| PB1 | DATA
PA11 | | LD

15
main.c
View file

@ -1,6 +1,11 @@
#include<avr/io.h>
#include "common.h"
// XXX - ADF4350 LE
// PB2 - SCK to ADF4350 CLK
// PB1 - DO (MOSI) to ADF4350 DATA
// XXX - ADF4350 LD
String tosend="Test";
void Delay(uint32_t);
@ -19,7 +24,7 @@ void spi_setup()
int main()
{
// set instructions to configure the ADF4350 settings for a 1 GHz +5dBm output
// set instructions to configure the ADF4350 for a 1 GHz +5dBm output
uint32_t ar0=0x500000;
uint32_t ar1=0x8008011;
uint32_t ar2=0x4e42;
@ -27,6 +32,14 @@ int main()
uint32_t ar4=0xac803c;
uint32_t ar5=0x580005;
// alternative instructions for a 1001.25 MHz +5dBm output
//uint32_t ar0=0x500008;
//uint32_t ar1=0x8008029;
//uint32_t ar2=0x4e42;
//uint32_t ar3=0x4b3;
//uint32_t ar4=0xac803c;
//uint32_t ar5=0x580005;
spi_setup();
}