Patrick Fitzgerald
Published

Programming the Artou ATmega8 DevBoard

Same thing as an Arduino board. ATmega8 DevBoards are neat. In this project we use a USBtiny external programmer to upload a hex file.

ExpertProtip3 hours133
Programming the Artou ATmega8 DevBoard

Story

Read more

Code

countB.c

C/C++
C program for ATmega processor
binary count on PORTB
// PORTB is an 8bit number at address 0x25 
#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); }} 

Credits

Patrick Fitzgerald
124 projects • 45 followers
Contact

Comments

Please log in or sign up to comment.