Skip to content

Commit

Permalink
V1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Jul 1, 2023
1 parent 2de9f42 commit 39d53eb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion extras/calibServer/calibServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions extras/calibTarget/calibTarget.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__) \
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=avrCalibrate
version=1.1.2
version=1.1.3
author=Bernhard Nebel <nebel@hinterm-ziel.de>
maintainer=Bernhard Nebel <nebel@hinterm-ziel.de>
sentence=This library determines OSCCAL calibration values for MCU clock frequency and internal reference voltage and loads them at setup.
Expand Down

0 comments on commit 39d53eb

Please sign in to comment.