On this page are web links from the book Explore ATtiny Microcontrollers using C and Assembly Language for easy access to referenced websites. An errata section follows the links where errors and corrections are found.
Report and find errata for the book at the bottom of this page. Either scroll down the page to find what you are looking for, or expand the table of contents below and click a link to jump to the desired section. The main sections on this page are:
Web Links for Explore ATtiny Microcontrollers using C and Assembly Language
Below are all the links from the book so that you don’t have to type them in manually.
Introduction
Microchip, Atmel, Microchip Studio and Atmel Studio
In 2016, Microchip (www.microchip.com) bought Atmel and is now the owner and manufacturer of AVR microcontrollers.
Accompanying Resources
Accompanying resources, such as the source code from this book, is available for download from the publisher’s website www.elektor.com where the book can be searched for by name or ISBN number to find its web page containing the downloadable resources. Additional resources can be found on the author’s website at wspublishing.net where the book name can be clicked to find its page and resources.
Chapter 1 of Explore ATtiny Microcontrollers
No links in this chapter.
Chapter 2 of Explore ATtiny Microcontrollers
2.1 Install Microchip Studio
2.1.1 Download Page and Software Version
Download Microchip Studio from:
www.microchip.com/en-us/development-tools-tools-and-software/microchip-studio-for-avr-and-sam-devices
The exact version of Microchip Studio used at the time of writing was:
Microchip Studio for AVR and SAM Devices 7.0.2542 Offline Installer
934 MB, date published November 2020
2.1.2 Newest Software Version
After the above version of Microchip Studio is replaced by a newer version, it will be available from the Downloads Archive for AVR and SAM:
www.microchip.com/en-us/development-tools-tools-and-software/avr-and-sam-downloads-archive
Chapter 3 of Explore ATtiny Microcontrollers
3.2 AVR Instruction Set
ww1.microchip.com/downloads/en/DeviceDoc/AVR-Instruction-Set-Manual-DS40002198A.pdf (Search the internet for “AVR instruction set manual” if this link changes and does not work, or to find if a newer version of the manual is available)
ATtiny25/45/85 datasheet: ww1.microchip.com/downloads/en/devicedoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf
(Search the Internet for “ATtiny25 datasheet” if this link changes and does not work)
ATtiny25 web page: www.microchip.com/en-us/product/ATtiny25
ATtiny45 web page: www.microchip.com/en-us/product/ATTINY45
ATtiny85 web page: www.microchip.com/en-us/product/ATtiny85
ATtiny13 datasheet: ww1.microchip.com/downloads/en/DeviceDoc/doc2535.pdf
(Search the Internet for “ATtiny13 datasheet” if this link changes and does not work)
ATtiny13 web page: www.microchip.com/en-us/product/ATtiny13
ATtiny13A datasheet: ww1.microchip.com/downloads/en/DeviceDoc/ATtiny13A-Data-Sheet-DS40002307A.pdf
(Search the Internet for “ATtiny13A datasheet” if this link changes and does not work)
ATtiny 13A web page: www.microchip.com/en-us/product/ATtiny13A
Chapter 4 of Explore ATtiny Microcontrollers
No links in this chapter.
Chapter 5 of Explore ATtiny Microcontrollers
No links in this chapter.
Chapter 6 of Explore ATtiny Microcontrollers
6.8 AVR Instruction Encoding
If you have not already downloaded this manual, find it at:
ww1.microchip.com/downloads/en/DeviceDoc/AVR-Instruction-Set-Manual-DS40002198A.pdf (Search the Internet for “AVR instruction set manual” if this link changes and does not work)
Chapter 7 of Explore ATtiny Microcontrollers
7.2 Addition
7.2.1 ADD – Add without Carry
For those who are interested in how the half carry flag is used, refer to the article:
en.wikipedia.org/wiki/Half-carry_flag
Chapter 8 of Explore ATtiny Microcontrollers
No links in this chapter.
Chapter 9 of Explore ATtiny Microcontrollers
9.5 Further Reading
Documentation for the AVRASM2 AVR assembler can be found on the Microchip website in PDF format at: ww1.microchip.com/downloads/en/devicedoc/40001917a.pdf
Chapter 10 of Explore ATtiny Microcontrollers
10.3 Calling an Assembly Subroutine from C Code
This information is available for the avr-gcc compiler in an application note called Atmel AT1886: Mixing Assembly and C with AVRGCC available from:
ww1.microchip.com/downloads/en/appnotes/doc42055.pdf
Chapter 11 of Explore ATtiny Microcontrollers
No links in this chapter.
Chapter 12 of Explore ATtiny Microcontrollers
12.1 AVR Assembler Programs
12.1.3 The AVRA Assembler
The source code for the AVRA project is available on GitHub at:
github.com/Ro5bert/avra
12.2 The GNU C Toolchain
These toolchains can be downloaded from:
ww.microchip.com/en-us/development-tools-tools-and-software/gcc-compilers-avr-and-arm
12.3 Where to from Here?
12.3.4 Assembly Language Resources
One site worth looking at is www.avrfreaks.net which is a forum for AVR enthusiasts.
Appendix A of Explore ATtiny Microcontrollers
A.3 External Programmer Setup
A.3.1 Install a Driver
A.3.1.1 USBasp Driver
Links to firmware, drivers, and other information on the USBasp can be found on the web page of the designer of this device, Thomas Fischl, at www.fischl.de/usbasp/
A driver installation tool called Zadig is used to install a driver for the USBasp on a Windows computer. Go to zadig.akeo.ie and download the Zadig executable file by clicking the link under the Download heading on the web page.
A.3.1.2 USBtinyISP Driver
The USBtinyISP was developed by Adafruit where the documentation and more information on the programmer can be found at learn.adafruit.com/usbtinyisp
A link to the Adafruit driver for the USBtinyISP can be found on the USBtinyISP drivers page at learn.adafruit.com/usbtinyisp/drivers
A.3.1.3 Arduino Uno Sketch
These instructions were tested on a genuine Arduino Uno R3 board from www.arduino.cc. Download the Arduino IDE from www.arduino.cc/en/software and install it to the host computer. Find installation instructions at www.arduino.cc/en/Guide for installing the IDE.
A.3.2 Download and Install avrdude
Visit download.savannah.gnu.org/releases/avrdude/ and scroll down the page to find the newest version of avrdude.
If you have 7-Zip (from www.7-zip.org) …
A.3.4 Programming Parameters
A.3.4.1 Documentation for avrdude
Documentation in the form of a PDF file for avrdude that contains more information on using avrdude can be found at download.savannah.gnu.org/releases/avrdude/ which contains PDF files for each version of avrdude.
A.3.4.2 Parameters for avrdude Explained
This text file can be edited using any text or code editor, and the entry from lists.nongnu.org/archive/html/avrdude-dev/2009-08/msg00005.html added to it.
Explore ATtiny Microcontrollers using C and Assembly Language Errata
Report errata for the book Explore ATtiny Microcontrollers using C and Assembly Language on our Contact Us page.
Errata submitted are included below.
Minor Typo Page 5, and Page 83:
The last item in the Chapter 4 section of the Table of Contents (TOC) is numbered 4.6 Summary. This should be 4.7 Summary. The heading on page 83 to which this TOC entry refers has the same typo.
Minor Typo Page 25:
The last line of the top paragraph on page 25 contains the text ATtiny25/45/84, which of course should be ATtiny25/45/85.