From 39d53ebb6d7cce8f47c9fb9e4352ea64d5d549ed Mon Sep 17 00:00:00 2001 From: Bernhard Nebel Date: Sat, 1 Jul 2023 18:45:20 +0200 Subject: [PATCH] V1.1.3 --- changelog.txt | 4 ++++ extras/calibServer/calibServer.ino | 2 +- extras/calibTarget/calibTarget.ino | 7 ++++--- library.json | 2 +- library.properties | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 87c920b..0bfc518 100644 --- a/changelog.txt +++ b/changelog.txt @@ -112,3 +112,7 @@ V1.1.1 (30.06.2023) V1.1.2 (30.06.2023) - added some error detection for ATiny13 calibration - added a trouble shooting section to the readme + +V1.1.3 (01.07.2023) +- fixed the value of MAXOSCCAL + diff --git a/extras/calibServer/calibServer.ino b/extras/calibServer/calibServer.ino index 5544d95..c5267d3 100644 --- a/extras/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.1.2" +#define VERSION "1.1.3" #define FREQPIN MISO #define TTYPIN SCK diff --git a/extras/calibTarget/calibTarget.ino b/extras/calibTarget/calibTarget.ino index 7673c8d..3328ef3 100644 --- a/extras/calibTarget/calibTarget.ino +++ b/extras/calibTarget/calibTarget.ino @@ -17,7 +17,7 @@ // a fully calibrated clock will give us 100000 counts. -#define VERSION "1.1.2" +#define VERSION "1.1.3" //#define TRUEMILLIVOLT 3309 // the true voltage measured in mV #define TRUEMILLIVOLT 5003 // the true voltage measured in mV @@ -49,10 +49,11 @@ #define SUCCTHRES 3 // number of consecutive measurements to accept a level change #define MIN_CHANGE 100 -#if defined(__AVR_ATtiny13__) || defined(__AVR_ATtiny13A__) +#if defined(__AVR_ATtiny13__) || defined(__AVR_ATtiny13A__) || \ + defined(__AVR_ATtiny2313__) || defined(__AVR_ATtiny2313A__) || defined(__AVR_ATtiny4313__) #define MAXOSCCAL 0x7F #else -#define MAXOSCCAL 0x7FF +#define MAXOSCCAL 0xFF #endif #if !defined(__AVR_ATtiny2313__) && !defined(__AVR_ATtiny2313A__) && !defined(__AVR_ATtiny4313__) \ diff --git a/library.json b/library.json index db15eb6..a045144 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "avrCalibrate", - "version": "1.1.2", + "version": "1.1.3", "keywords": "calibration, internal reference voltage, MCU clock, OSCCAL", "description": "Supports calibration of OSCCAL value and internal reference voltage and supports setting them at startup", "repository": diff --git a/library.properties b/library.properties index 5484445..c50b204 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=avrCalibrate -version=1.1.2 +version=1.1.3 author=Bernhard Nebel maintainer=Bernhard Nebel sentence=This library determines OSCCAL calibration values for MCU clock frequency and internal reference voltage and loads them at setup.