Patrick Fitzgerald
Published

Program Uno with WinAVR

WinAVR classic IDE suite for 8bit processors from Atmel. For retro programming this software is so good it has not updated in 12 years.

IntermediateProtip2 hours1,062
Program Uno with WinAVR

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
USB-A to B Cable
USB-A to B Cable
×1

Software apps and online services

WinAVR Developer Toolkit

Story

Read more

Code

main.c

C/C++
Must be named main.c for this project.
// PORTB is an 8bit number at address 0x24
#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>
int main(void){   DDRB = 0xFF; 	// turn PORTB on
	    while(1){PORTB++;  	// increment PORTB
	    _delay_ms(100);	// delay
	}}

Makefile

Makefile
Generated by Mfile program from template. Modified for atmega328, 16MHz and com port for arduino. Must be named Makefile or makefile to work with WinAVR
No preview (download only).

Credits

Patrick Fitzgerald

Patrick Fitzgerald

117 projects • 39 followers

Comments