Explore ATtiny Microcontrollers using C and Assembly Language Web Links
On this page are web links from the book Explore ATtiny Microcontrollers using C and Assembly Language for easy access to referenced websites.
The book has a web page at Elektor for Explore ATtiny Microcontrollers using C and Assembly Language.
Scroll down to find the chapter and section that contains the link that you are looking for, or use the links directly below to jump to the desired chapter on this page.
Introduction | Chapter 1 | Chapter 2 | Chapter 3 | Chapter 4 | Chapter 5 | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10 | Chapter 11 | Chapter 12 | Appendix A
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
No links in this chapter.
Chapter 2
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
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
No links in this chapter.
Chapter 5
No links in this chapter.
Chapter 6
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
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
No links in this chapter.
Chapter 9
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
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
No links in this chapter.
Chapter 12
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
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.