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.
AVR Compiler test
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
Please be positive and constructive with your questions and comments.