Patrick Fitzgerald
Published

Program Artou ATmega32 Development Board

Program an AVR develpment board without installing any software. ExpressIDE and AVRdudess.

AdvancedProtip3 hours85
Program Artou ATmega32 Development Board

Things used in this project

Hardware components

Artou ATmega32 Development Board
×1

Software apps and online services

XpressIDE online compiler

Story

Read more

Code

at32.c

C/C++
AVR-GCC main file to toggle IOs on all 4 ports.
ATmega32 has PORTA while other MCUs do not
// toggle IOs on output ports
#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>
int main(void)
  { DDRA=0xFF; DDRB=0xFF; DDRC=0xFF; DDRD=0xFF;  // all ports as output
while(1)
  { PORTA++; PORTB++; PORTC++; PORTD++;   // binary count
    _delay_ms(50); }}
// ATmega32 has a PORTA 

Credits

Patrick Fitzgerald

Patrick Fitzgerald

100 projects • 28 followers

Comments