Step 1: Parts
2. 1 X Atmel AVR Atmega16 microcontroller
3. 8 X 330 ohms Resistors
4. 8 X LEDs
5. 1 X AVR Programmer (just use for download the code, i used a STK500)
Step 2: Build the Circuit
Step 3: Download the Code
DDRD = 0xff;
PORTD = 0b11100110;
or you can download the teset1.hex that i already build.
Step 4: Result
8 LEDs represent 8 bits: 11100110 (light up=1, off=0)
Step 5: Make the LEDs Flashing
This is my first write up, if any thing is not right please let me know.
Thank you very much.