From 9a240ddaa21efaa333d2d45a73fe2af9f60a1437 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 27 Apr 2022 13:27:43 +0200 Subject: Minor changes --- kicad/ADF4002_27MHz_PLL.kicad_sch | 66 ++++++++++++++++++++++++--------------- src/app/Makefile | 10 +++--- src/app/README.md | 5 +++ 3 files changed, 49 insertions(+), 32 deletions(-) diff --git a/kicad/ADF4002_27MHz_PLL.kicad_sch b/kicad/ADF4002_27MHz_PLL.kicad_sch index f1b882f..1eecf12 100644 --- a/kicad/ADF4002_27MHz_PLL.kicad_sch +++ b/kicad/ADF4002_27MHz_PLL.kicad_sch @@ -1361,7 +1361,7 @@ (stroke (width 0) (type default) (color 0 0 0 0)) (uuid 20556d14-dbee-484a-b93d-bca96efa7b4e) ) - (wire (pts (xy 231.14 139.7) (xy 255.27 139.7)) + (wire (pts (xy 231.14 139.7) (xy 254 139.7)) (stroke (width 0) (type default) (color 0 0 0 0)) (uuid 20d6520c-f957-4315-8f10-9ca59847eb48) ) @@ -1489,7 +1489,7 @@ (stroke (width 0) (type default) (color 0 0 0 0)) (uuid 597ad330-690c-4c49-85bd-9c5a3fa4b677) ) - (wire (pts (xy 231.14 142.24) (xy 255.27 142.24)) + (wire (pts (xy 231.14 142.24) (xy 254 142.24)) (stroke (width 0) (type default) (color 0 0 0 0)) (uuid 5a7295ca-9eca-488b-b32b-edf487c96dd2) ) @@ -1673,7 +1673,7 @@ (stroke (width 0) (type default) (color 0 0 0 0)) (uuid a9f5ef5d-592d-45b6-9cd8-ba53b5caa840) ) - (wire (pts (xy 260.35 142.24) (xy 262.89 142.24)) + (wire (pts (xy 259.08 142.24) (xy 262.89 142.24)) (stroke (width 0) (type default) (color 0 0 0 0)) (uuid aca5633b-0da2-45e1-9a3b-6104c714123a) ) @@ -1697,7 +1697,7 @@ (stroke (width 0) (type default) (color 0 0 0 0)) (uuid b0d7251d-aee7-4b60-9966-3e238c61095b) ) - (wire (pts (xy 260.35 139.7) (xy 262.89 139.7)) + (wire (pts (xy 259.08 139.7) (xy 262.89 139.7)) (stroke (width 0) (type default) (color 0 0 0 0)) (uuid b2d9ecdf-2cb1-4ef9-84e6-a0051b533553) ) @@ -1893,7 +1893,7 @@ (stroke (width 0) (type default) (color 0 0 0 0)) (uuid f5249e82-ce36-4a3f-b5c2-464ed4e85601) ) - (wire (pts (xy 262.89 142.24) (xy 262.89 144.78)) + (wire (pts (xy 262.89 142.24) (xy 262.89 148.59)) (stroke (width 0) (type default) (color 0 0 0 0)) (uuid f56d7ef2-1ab2-4ecd-bda1-259ca6e8cf47) ) @@ -1934,6 +1934,20 @@ (uuid fe6323a8-e9b4-41f0-9806-95ccc43b5737) ) + (text "CMOS level" (at 114.3 58.42 0) + (effects (font (size 1.27 1.27)) (justify left bottom)) + (uuid 4845f7a6-c463-4580-b93c-913e05be62b5) + ) + (text "Assembly order:\n1. 3x Power regulators\n2. ATtiny25 and passives\n3. GPSDO and passives\n4. VCXO and output passives\n5. ADF4002\n6. Loop filter" + (at 92.71 140.97 0) + (effects (font (size 1.27 1.27)) (justify left bottom)) + (uuid f2894aed-210e-42f6-ba27-8d72a0db89b4) + ) + (text "Max +/- 600mV\nRFinA - RFinB" (at 93.98 67.31 0) + (effects (font (size 1.27 1.27)) (justify left bottom)) + (uuid fb7c0c06-cd7d-4cf4-aec0-7319ba5d8f3d) + ) + (label "MISO" (at 73.66 102.87 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid 0425ee8e-ec6c-430f-aba4-85df9784cac1) @@ -3054,15 +3068,15 @@ (pin "2" (uuid f31d0461-dcda-4c27-90d2-dcc0aba63415)) ) - (symbol (lib_id "Device:R_Small") (at 257.81 142.24 270) (unit 1) + (symbol (lib_id "Device:R_Small") (at 256.54 142.24 270) (unit 1) (in_bom yes) (on_board yes) (fields_autoplaced) (uuid 6e1ae039-09de-440f-ac03-e4694d3fc63b) - (property "Reference" "R21" (id 0) (at 257.81 145.007 90)) - (property "Value" "4k7" (id 1) (at 257.81 147.5439 90)) - (property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (id 2) (at 257.81 142.24 0) + (property "Reference" "R21" (id 0) (at 256.54 145.007 90)) + (property "Value" "" (id 1) (at 256.54 147.5439 90)) + (property "Footprint" "" (id 2) (at 256.54 142.24 0) (effects (font (size 1.27 1.27)) hide) ) - (property "Datasheet" "~" (id 3) (at 257.81 142.24 0) + (property "Datasheet" "~" (id 3) (at 256.54 142.24 0) (effects (font (size 1.27 1.27)) hide) ) (pin "1" (uuid 95fb6e23-5e9c-4429-bb87-0afd1865a9a6)) @@ -3526,19 +3540,19 @@ (pin "1" (uuid db2e3e74-8a60-4fd8-a92b-d35e5302fcb4)) ) - (symbol (lib_id "Device:R_Small") (at 262.89 147.32 0) (unit 1) + (symbol (lib_id "Device:R_Small") (at 262.89 151.13 0) (unit 1) (in_bom yes) (on_board yes) (fields_autoplaced) (uuid ba31b6be-4553-4b0c-be43-34072edcd98e) - (property "Reference" "R22" (id 0) (at 264.3886 146.4853 0) + (property "Reference" "R22" (id 0) (at 264.3886 150.2953 0) (effects (font (size 1.27 1.27)) (justify left)) ) - (property "Value" "10k" (id 1) (at 264.3886 149.0222 0) + (property "Value" "10k" (id 1) (at 264.3886 152.8322 0) (effects (font (size 1.27 1.27)) (justify left)) ) - (property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (id 2) (at 262.89 147.32 0) + (property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (id 2) (at 262.89 151.13 0) (effects (font (size 1.27 1.27)) hide) ) - (property "Datasheet" "~" (id 3) (at 262.89 147.32 0) + (property "Datasheet" "~" (id 3) (at 262.89 151.13 0) (effects (font (size 1.27 1.27)) hide) ) (pin "1" (uuid 1f43c413-36eb-4cd9-ab93-b1fd522bc244)) @@ -3833,15 +3847,15 @@ (pin "1" (uuid 9b312b23-0552-4d58-9306-ee4678dc2c2d)) ) - (symbol (lib_id "Device:R_Small") (at 257.81 139.7 270) (unit 1) + (symbol (lib_id "Device:R_Small") (at 256.54 139.7 270) (unit 1) (in_bom yes) (on_board yes) (fields_autoplaced) (uuid e20ce6ec-3f2c-4b32-8a9c-42034462df35) - (property "Reference" "R20" (id 0) (at 257.81 135.2636 90)) - (property "Value" "4k7" (id 1) (at 257.81 137.8005 90)) - (property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (id 2) (at 257.81 139.7 0) + (property "Reference" "R20" (id 0) (at 256.54 135.2636 90)) + (property "Value" "4k7" (id 1) (at 256.54 137.8005 90)) + (property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (id 2) (at 256.54 139.7 0) (effects (font (size 1.27 1.27)) hide) ) - (property "Datasheet" "~" (id 3) (at 257.81 139.7 0) + (property "Datasheet" "~" (id 3) (at 256.54 139.7 0) (effects (font (size 1.27 1.27)) hide) ) (pin "1" (uuid c3c696ed-b744-44af-8575-4146400aac2d)) @@ -3998,19 +4012,19 @@ (pin "1" (uuid 1d5dc234-bf20-4c49-92af-320cad15e14c)) ) - (symbol (lib_id "power:GND") (at 262.89 149.86 0) (unit 1) + (symbol (lib_id "power:GND") (at 262.89 153.67 0) (unit 1) (in_bom yes) (on_board yes) (fields_autoplaced) (uuid f7870e4a-9186-4f4d-b76d-b694f06cc238) - (property "Reference" "#PWR030" (id 0) (at 262.89 156.21 0) + (property "Reference" "#PWR030" (id 0) (at 262.89 160.02 0) (effects (font (size 1.27 1.27)) hide) ) - (property "Value" "GND" (id 1) (at 264.795 151.5638 0) + (property "Value" "GND" (id 1) (at 264.795 155.3738 0) (effects (font (size 1.27 1.27)) (justify left)) ) - (property "Footprint" "" (id 2) (at 262.89 149.86 0) + (property "Footprint" "" (id 2) (at 262.89 153.67 0) (effects (font (size 1.27 1.27)) hide) ) - (property "Datasheet" "" (id 3) (at 262.89 149.86 0) + (property "Datasheet" "" (id 3) (at 262.89 153.67 0) (effects (font (size 1.27 1.27)) hide) ) (pin "1" (uuid 341aa133-1538-4fa5-8b59-9ff3e0dc141e)) @@ -4363,7 +4377,7 @@ (reference "R20") (unit 1) (value "4k7") (footprint "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder") ) (path "/6e1ae039-09de-440f-ac03-e4694d3fc63b" - (reference "R21") (unit 1) (value "4k7") (footprint "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder") + (reference "R21") (unit 1) (value "DNF (4k7)") (footprint "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder") ) (path "/ba31b6be-4553-4b0c-be43-34072edcd98e" (reference "R22") (unit 1) (value "10k") (footprint "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder") diff --git a/src/app/Makefile b/src/app/Makefile index 8fe6809..a5f71de 100644 --- a/src/app/Makefile +++ b/src/app/Makefile @@ -13,10 +13,8 @@ PROG = dragon_isp PART=attiny25 AVRDUDE_PART=t25 -# Cpu frequency -# is 3.579545MHz / 8 = 447443.125 -#F_CPU=447443UL -F_CPU="(3579545UL/8)" +# Cpu frequency, internal RC at 8MHz, divide by 8 enabled +F_CPU="1000000UL" # Directory for built objects BUILD_DIR=build @@ -46,7 +44,7 @@ vpath %.elf ./$(BUILD_DIR) vpath %.hex ./$(BUILD_DIR) # GCC flags -CFLAGS=-g -mmcu=$(PART) -O1 -Wall -Werror -DF_CPU=$(F_CPU) +CFLAGS=-g -mmcu=$(PART) -Os -Wall -Werror -DF_CPU=$(F_CPU) INCLUDES=-I. -I$(LIB_DIR) @@ -98,7 +96,7 @@ program: $(APP_HEX) $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U flash:w:$(BUILD_DIR)/$(APP_HEX) -v fuse: - $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U lfuse:w:0x60:m -U hfuse:w:0xdc:m -U efuse:w:0xff:m -v + $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -v interactive: $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -t -v diff --git a/src/app/README.md b/src/app/README.md index 9683e00..a797ec4 100644 --- a/src/app/README.md +++ b/src/app/README.md @@ -8,3 +8,8 @@ On startup, configure ADF4002 with f_VCO = N ⋅ f_REF / R 27 = 1080 ⋅ 10 / 400 + +ATtiny eFuse +------------ + +Kept at default 62 DF FF -- cgit v1.2.3