Skip to content

Commit

Permalink
V1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Jun 27, 2023
1 parent f65cec9 commit a50144f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 18 deletions.
6 changes: 4 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ V0.6.1 (27.07.2023)
- fixed typos in readme
- new workflows

V0.6.2 (28.07.2023)
V0.6.2 (27.07.2023)
- fixed problem in init for ATtinyX313

V0.6.3 (28.07.2023)
V0.6.3 (27.07.2023)
- fixed problem in setup_* for ATtinyX313 (never call Vcc:measure!)
- fixed problem in setup_* for all MCUs using OSCCAL0
- fixed the same problem in avrCalibrate.cpp
- added ATmega8(A)
- added ATmega16, 32 & 8535

V1.0.0 (27.06.2023)
- first public release
1 change: 0 additions & 1 deletion examples/simple/simple.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// This sketch uses the method of using the values stored in EEPROM

// It will wait 10 seconds and then it will call in init

#include <avrCalibrate.h>
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avrCalibrate",
"version": "0.6.3",
"version": "1.0.0",
"keywords": "calibration, internal reference voltage, MCU clock, OSCCAL",
"description": "Supports calibration of OSCCAL and internal reference voltage and supoorts setting them at startup",
"repository":
Expand All @@ -17,7 +17,7 @@
[
{
"name": "Vcc",
"version": ""https://github.com/felias-fogg/Vcc.git"
"version": ""https://github.com/felias-fogg/Vcc.git#2.2.0"
}
]

Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name=avrCalibrate
version=0.6.3
version=1.0.0
author=Bernhard Nebel <nebel@hinterm-ziel.de>
maintainer=Bernhard Nebel <nebel@hinterm-ziel.de>
sentence=Determines calibration values for MCU clock frequency and internal reference voltage and sets them at setup.
paragraph=
category=Timing
url=https://github.com/felias-fogg/avrCalibrate
architectures=avr
depends=Vcc (>=2.0.0)
depends=Vcc (>=2.2.0)
includes=avrCalibrate.h
13 changes: 4 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# AVR MCU Calibration

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

[![Installation instructions](https://www.ardu-badge.com/badge/avrCalibrate.svg?)](https://www.ardu-badge.com/avrCalibrate)

[![Build Status](https://github.com/felias-fogg/avrCalibrate/workflows/LibraryBuild/badge.svg)](https://github.com/felias-fogg/avrCalibrate/actions)

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)[![Installation instructions](https://www.ardu-badge.com/badge/avrCalibrate.svg?)](https://www.ardu-badge.com/avrCalibrate)[![Build Status](https://github.com/felias-fogg/avrCalibrate/workflows/LibraryBuild/badge.svg)](https://github.com/felias-fogg/avrCalibrate/actions)
![Hit Counter](https://visitor-badge.laobi.icu/badge?page_id=felias-fogg_avrCalibrate)

This library contains just one function to set user calibration values in a (classic) AVR MCU and two sketches that can be used to determine the calibration values by connecting a target board with an Arduino UNO (or a similar board) using an ICSP cable.
This library contains just one function to set user calibration values in a (classic) AVR MCU and two sketches that can be used to determine the calibration values by connecting a target board with an Arduino UNO (or a similar board) using an ICSP cable. It depends on the [*Vcc* library](https://github.com/felias-fogg/Vcc), which you need to install as well (using the library manager or download it from GitHub).

### Purpose

Expand Down Expand Up @@ -75,10 +70,10 @@ As targets, the following MCUs are supported. On MCUs with only 2K bytes flash m
* ATtiny48, ATtiny88
* ATtiny1634
* ATmega48(P)(A/B), ATmega88(P)(A/B), ATmega168(P)(A/B), ATmega328(P)(B)
* Atmega8(A)
* ATmega324(P), ATmega644(P), ATmega1284(P),
* ATmega16, ATmega32, ATmega8535
* ATmega8535, ATmega16, ATmega32
* ATmega1280, ATmega2560
* ATmega32U4, ATmega16U4 (only internal reference voltage calibration)

The ATtiny43U board that I own does not deliver meaningful data when one tries to measure Vcc. For this reason, it is not supported. The ATtinyX23 do not have an ADC, so Vcc cannot be measured. Finally, for the USB-MCUs ATmegaXU4, I am not aware of any Arduino core that supports using the RC-oscillator. So, only internal reference voltage calibration is supported.

2 changes: 1 addition & 1 deletion utilities/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 "0.6.3"
#define VERSION "1.0.0"

#define FREQPIN MISO
#define TTYPIN SCK
Expand Down
2 changes: 1 addition & 1 deletion utilities/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 "0.6.3"
#define VERSION "1.0.0"

//#define TRUEMILLIVOLT 3309 // the true voltage measured in mV
#define TRUEMILLIVOLT 5003 // the true voltage measured in mV
Expand Down

0 comments on commit a50144f

Please sign in to comment.