Exercise 08 Embedded Programming


Requirement

Datasheet of Atmel Microcontroller

The microcontroller we are working to on is a Atmel ATtiny85 MCU.
To locate the datasheet of an MCU, go to the Atmel website >> Atmel AVR 8-bit and 32-bit Microcontrollers >> tinyAVR MCUs >> ATtiny85

ATtiny25/v/ATtiny45/v/ATtiny85/v Complete datasheet, 234 pages



Pin Configurations of ATtiny25/v/45/v/85/v from one single datasheet

Reading thru the Datasheet, it shows plenty of information of the ATTINY85 which I used for the hello board.


It also shows the block diagram of the chip. I am actually quite surprise that such a small chip, and so many logic gates and components all cramped into one chip.

We can also check out the memory differences between Attiny45 and Attiny85

Interestingly, the chip has 6 I/O (Input Output) pins that we can configure and to play with.


Based on the Datasheet it also says that ATTINY85 has a build in temperature sensor, and with some coding and lead assignment, I am able to activate the sensor.
The on-chip temperature sensor is selected by writing the code “1111” to the MUX[3:0] bits in ADMUX register when the ADC4 channel is used as an ADC input.


Difference between ATtiny85 and ATtiny85v


The difference between a ATtiny85v and a ATtiny85 is that the latter is an optimized version of the former. They are having the exact identical Eprom size of 512K but different in term of some electrical characteristics and clock speed.