Embeded Programming

Introduction
This weeks assignment involved Read a microcontroller data sheet. Program your board to do something, with as many different programming languages and programming environments as possible.

For this assignment i decided to upload different codes to the helloboard using the ISP programmer and an Arduino Uno. The code was to implement the function of a button to light an LED when pressed. The first step was to check out the pinout arrangement for the ATtiny 85 which was used for this board

The pin classification also enables one to identify how the pins are connected to the equivalent of SCK, MISO and MOSI pins on other micrpcontrollers

Since the ISP pins are similar on both boards connecting the FabISP and Hello world board was direct

The same connection used for the Fab ISP and arduino is also similar to that used by the Helloworld board

The next step was to loard the FabISP program to the arduino while it is not connected to any board. after uploading the program one has to disconnect the board and connect the pins as follows
5v---5v
GND---GND
RESET---PIN10
MOSI---PIN11
MISO---PIN12
SCK---PIN13
Afterwards one connects the arduino to the computer and goes to tools and changes the board to ATtiny 85 and the programmer to Arduino as ISP then burns the bootloarder.

The next stage is to upload the buttons program but for this one has to go back to the circuit and see how the buttons and LED are connected in my case the button is connected to PORT 0 of the microcontroller while the LED is connected to PORT 1. After making the changes, The code is as shown below. Compile the program and select upload using programmer from the file menthen check and see if the board operates as intended.

The operation was a success as the board did not light when the button was not pressed and the opposite took effect when the button was pressed

Get the atmega328p datasheet from here