Brief

Read a microcontroller data sheet & program your board to do something

  • The DataSheet of Attiny44
  • Programming the push-led board
  • Files
  • The Details

    The DataSheet of Attiny44

    The whole notion of datasheet was so new to me. Reading and trying to comprehend what the Attiny44's (my processor) datasheet is about, was a headache in the beginning. The most interesting thing in the whole datasheet is the association of the pins to their coding representative numbers. This is also telling you where you can place components if there are special "needs" (for example analog input).


    - Attiny44 pinout -

    Other useful information is the boundaries within which this processor operates, for example temperatures and voltages.


    - Maximum Ratings -

    Or how current can affect different functionalities (r.g. reseting the board).


    - DC characteristics -

    Last but not least, how current can change the frequency in which the board operates (which might create communication problems).


    - Frequencies -

    Programming the push-led board

    In order to program the board with the fabISP, some steps need to be done in advance:

  • Install latest Arduino IDE,
  • Download attiny documents for the board to be visible,
  • Go to Documents > Arduino > hardware (Hardware didn’t exist in my computer, so I just created a folder and named it hardware), and copy the contents of the previous attiny.zip under Documents > Arduino > hardware > attiny,
  • Install FTDI drivers for the serial communication.

  • - Make sure your fabISP is stable in the usb port, otherwise you might get weird messages -
    - Make the right selections in the Arduino environment (clock, board, processor, programmer) -

    After everything was set, I experimented a bit with the existing code (examples). Analog vs Digital write, making the led blink (with/without fading). At the end I wrote a program that combined the use of the button with the led. While you hold the button pressed, the led blinks.


    - The push-led board (the second one!) -
    - A first program, flashing the led without using the button -

    Files

  • PushLed [.ino] Arduino code file