AVR Compiler test

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
KFC
 
Posts: 10
Joined: Thu Oct 04, 2007 11:38 pm

AVR Compiler test

Post by KFC »

Can someone test this code(hex) to make sure it was compiled right. I compiled it for the ATMega8 and the USBtinyISP programmer? I can change it if someone has different chip or programmer.

http://www.avrfreaks.net/index.php?name ... ad&id=9074


Here the code in c:
/*
blinky.c

blink with a led connected to PORTB.0
*/

#include <avr/io.h>

int main(void) {
long a;

DDRB |= _BV(0); // PORTB0 is output

while(1){
PORTB |= _BV(0); // LED on
for(a=0;a<100000;a++); // wait
PORTB &= ~_BV(0); // LED off
for(a=0;a<100000;a++); // wait
}

return 0;
}


The reason I'm asking is because I bought a PIC and crappie programmer(50 dollars) that supposedly had software(freeware) that was supported and it just did not work. So I wanted to know that everything(software) work before I bought the USBtinyISP programmer.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”