From 3dd325cead7ea83814a80c38656db83ffed17de4 Mon Sep 17 00:00:00 2001 From: Bernhard Nebel Date: Tue, 27 Jun 2023 23:42:10 +0200 Subject: [PATCH] V1.0.1 --- changelog.txt | 4 ++++ {utilities => extras}/calibServer/calibServer.ino | 2 +- {utilities => extras}/calibTarget/calibTarget.ino | 2 +- library.json | 2 +- library.properties | 2 +- readme.md | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) rename {utilities => extras}/calibServer/calibServer.ino (98%) rename {utilities => extras}/calibTarget/calibTarget.ino (99%) diff --git a/changelog.txt b/changelog.txt index 8ef9551..fc248d6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -95,3 +95,7 @@ V0.6.3 (27.07.2023) V1.0.0 (27.06.2023) - first public release + +V1.0.1 (27.06.2023) +- moved utility folder to extras in order to be compliant with the + Arduino library rules diff --git a/utilities/calibServer/calibServer.ino b/extras/calibServer/calibServer.ino similarity index 98% rename from utilities/calibServer/calibServer.ino rename to extras/calibServer/calibServer.ino index 93c041c..61d1c39 100644 --- a/utilities/calibServer/calibServer.ino +++ b/extras/calibServer/calibServer.ino @@ -2,7 +2,7 @@ // open drain pin using Timer1. Additionally, it passes the 1200 baud output of a target board // to Serial. -#define VERSION "1.0.0" +#define VERSION "1.0.1" #define FREQPIN MISO #define TTYPIN SCK diff --git a/utilities/calibTarget/calibTarget.ino b/extras/calibTarget/calibTarget.ino similarity index 99% rename from utilities/calibTarget/calibTarget.ino rename to extras/calibTarget/calibTarget.ino index c0ad3f6..012d089 100644 --- a/utilities/calibTarget/calibTarget.ino +++ b/extras/calibTarget/calibTarget.ino @@ -17,7 +17,7 @@ // a fully calibrated clock will give us 100000 counts. -#define VERSION "1.0.0" +#define VERSION "1.0.1" //#define TRUEMILLIVOLT 3309 // the true voltage measured in mV #define TRUEMILLIVOLT 5003 // the true voltage measured in mV diff --git a/library.json b/library.json index 62923d8..c7017db 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "avrCalibrate", - "version": "1.0.0", + "version": "1.0.1", "keywords": "calibration, internal reference voltage, MCU clock, OSCCAL", "description": "Supports calibration of OSCCAL and internal reference voltage and supoorts setting them at startup", "repository": diff --git a/library.properties b/library.properties index d3c2927..b7361cd 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=avrCalibrate -version=1.0.0 +version=1.0.1 author=Bernhard Nebel maintainer=Bernhard Nebel sentence=Determines calibration values for MCU clock frequency and internal reference voltage and sets them at setup. diff --git a/readme.md b/readme.md index a90e3cc..93a4703 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ If you want to use only one of the values, then you still could use this functio ### Calibration process -The predetermined calibration values can either be stored in EEPROM or can be provided as constant values. The tricky part is, of course, to determine these calibration values. For that purpose, two Arduino sketches are provided in the `utility` folder. The `calibTarget` sketch needs to be loaded to the target board using a programmer. Before you do that, you need to adjust the compile-time constant `TRUEMILLIVOLT` to the true supply voltage of the target board (which should be measured using an accurate Multimeter). Next you need to upload the `calibServer` sketch to an Arduino UNO or similar board that uses a ceramic resonator or crystal. It generates a reasonably accurate 10 Hz signal that is used to calibrate the `OSCCAL` value on the target board. +The predetermined calibration values can either be stored in EEPROM or can be provided as constant values. The tricky part is, of course, to determine these calibration values. For that purpose, two Arduino sketches are provided in the `extras` folder. The `calibTarget` sketch needs to be loaded to the target board using a programmer. Before you do that, you need to adjust the compile-time constant `TRUEMILLIVOLT` to the true supply voltage of the target board (which should be measured using an accurate Multimeter). Next you need to upload the `calibServer` sketch to an Arduino UNO or similar board that uses a ceramic resonator or crystal. It generates a reasonably accurate 10 Hz signal that is used to calibrate the `OSCCAL` value on the target board. You then need to connect the two boards using an ICSP cable (see below). Now open the monitor window and set the baud rate to 115200. After pressing the `RESET` button on the server board, which will also reset the target board, the calibration can be started by pressing a key. This could look like as in the following picture.