Skip to content

8. Embedded programming

Individual assignment

  1. Read the data sheet for your microcontroller
  2. Use your programmer to program your board to do something

Group Assignment

Compare the performance and development workflows for other architectures link to group assignment

This week we are asked to read the data sheet of the microcontroller we are using. In my hello world board I used Attiny 44 so I will be reading Attiny 44’s datasheet and document my understanding. You can read the datasheet in here.

The following shows the pinouts of Attiny 44.

Features

  1. High performance, low power AVR® 8-bit microcontroller
  2. Operating voltage: 2.7 - 5.5V for Atmel ATtiny24/44/84
  3. Speed grade -Atmel ATtiny24/44/84: 0 - 8MHz at 2.7 - 5.5V, 0 - 16MHz at 4.5 - 5.5V
  4. In-system programmable via SPI port
  5. External and internal interrupt sources
  6. Enhanced power-on reset circuit
  7. Internal calibrated oscillator
  8. On-chip temperature sensor
  9. On-Chip Analog Comparator
  10. Universal Serial Interface
  11. Industrial Temperature Range: -40°C to +85°C

## Programming with Fab Isp The Fab Isp that I milled and programmed as a programmer will be used to program my echo hello-world board. So firstly I connected my board’s programming pins to the Fab Isp and used arduino ide software to program the board. The blue led that I added to my board, I connected that led to pin number 10 of the Attiny 44 microcontroller. The arduino pin for the pin number 10 was 3 so I declared pin number 3 as my output pin and used the blinkk code from the example. Compiled it and uploaded tit to my board and the led started blinking with a delay of 1000 microseconds which I looped in the code.

Firstly I clicked on File>> Basics>> Examples>> Blink for the blink code as shown below;

Next I selected my Attiny 44 board;

Select processor as Attiny44;

Select the port;

Select the programmer as USBtinyISP;

Compile/verify and then upload;

The code I used;

Design files

hello world board design file
hello world schematic design file


Last update: June 29, 2022