AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Arduino uno r3 programming8/27/2023 ![]() ![]() Forgive me another lenghty remark: As a beginner in playing with the ATtiny85, I did not know about the necessity of burning a bootloader. ![]() I got cryptic error notes which drove me close to insanity. And then it was a matter of trial and error until I got it going, especially you have to upload your code with "upload with programmer" instead of jus hitting "upload". Pane I had to enter > and download "ATtinåore 1.4.1 by Spence Konde". To install the newest(?) ATtiny Board Package in the Arduino Pref. As usual, the problem sat in front of the screen - but to my excuse: Many Menues from this super Instructable look different on my Mac :-( I'm running OSX High Sierra and the latest Arduino IDE which is 1.8.13. Writing a program to light an LED on pin 0 on the ATtiny85 might be confusing at first because just by looking at the chip, there is no pin 0! However, by checking the datasheet of the ATtiny85 from ATMEL-snippet shown above-pin 0 is internally located on the chip's port B (and is actually the chip's physical pin 5 )! To add to the complexity pins can have more than one fuction and be labeled multiple names. If pin 0 was located on Port A the name would look something like PA0 ( Port A pin 0) PB0 (in the above datasheet) just means pin 0 is located on Port B of the Chip. Each port has a number of pins which are labeled 0,1,2,3 etc and stick out on different parts of the chip which is why a microcontroller's physical pin often time will be different than the pin number used when programming the chip. Pins are gathered into groups called "ports" these ports are labeled A,B,C etc. The manufacturer of the ATtiny85 is ATMEL (the AT in ATtiny85-actually stands for ATMEL) It's common for chips to have the first two initials of the company who makes them. ![]() Pin numbers used to program a chip on the Arduino IDE are based on how the chip manufacturer has internally named/aranged the pins. Before the connections are made there is a very important fact to know how pins on microcrontrollers/ICs are labeled. ![]()
0 Comments
Read More
Leave a Reply. |