Embedded Programming

Assignment

This weeks assignment consist of reading the microcontroller data sheet (attiny) to understand the functioning of our microcontroller and program my board (hello world) to do something, with as many different programming languages and programming environments as possible.

Where I stand-

I have some experience in programming(Java and C) but when it come to Embedded programming, I still have a lot to learn.(By a lot, I mean everything).Electronics is not my strong suit and i dont know much about microcontrollers and their working. The data sheet was of some help,But I still didnt understand much. Also we dont have anyone in our lab who have experience in electronis field, so i had to learn everythong by myself. I used the ATTiny 44a, so i mainly concentrated on its PIN diagram and working. Here's an image of the PIN placements of ATTINY44:





I used a FabISP and arduino software for programming the board.
The PINs of an ATtiny and arduino are not similar.There are some differences and hence while programming, change the PINSs on the ATtiny to the corresponding arduino PINs.This can be done by referencing the PIN diagrams of both ATtiny and arduino.

Here is a diagram of PINs of arduino with rerspect to that of ATitny:





Connect the Hello Board to the FabISP and to the computer via FTDI cable.Make sure the FabISP is connected to the computer.





1- Installing Arduino and the ATtiny files

2- Connect the Helloworld board and FabISP to PC.

3- Programme the Board

blink programmed from nizam on Vimeo.

The blink programme worked correctly, by detecting input from the switch.

Download Blink Program
Main Page