Home
About me
Assignments
Final Project

Week 8

For this assignment the microcontroller 44 was chosen Attiny whose datasheet is as follows

Pin Descriptions

VCC

Supply voltage

GND

Ground

Port B (PB3...PB0)

Port B is a 4-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B output buffers have symmetrical drive characteristics with both high sink and source capability except PB3, which has the RESET capability. To use pin PB3 as an I/O pin instead of RESET pin, program (‘0’) RSTDISBL fuse. As inputs, Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running.

RESET

Reset input. A low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running. Shorter pulses are not guaranteed to generate a reset.

Port A (PA7...PA0)

Port A is a 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The port A output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port A pins that are externally pulled low will source current if the pull-up resistors are activated. The port A pins are tri-stated when a reset condition becomes active, even if the clock is not running.

The plate used was as follows:

To program this card was used the Arduino software, which you must install the necessary library for this microcontroller (ATtiny 45), you can download this library link below

https://github.com/damellis/attiny/archive/ide-1.0.x.zip

Before that you must download the "arduinoISP" program and download it l plate arduino one thereby arduino card will be saved as a recorder of the Attiny card.

Must be taken into account, the location of each pin:

After that an example program that is in the same software loaded

The result obtained was as follows

We can also try with other codes. In this case, when you press the button, the led will blink 3 times

And in this case, every time I press the button, the state of the led changes