سلام
من با win avr کد زدم و الان این خطاعا رو میده:
این هم کدیه که نوشتم:
در ضمن میکرو مورد استفاده م هم اینه: http://eshop.eca.ir/avr/517-ATMEGA32A.html
خواهش میکنم اگر اکسی بلده کمکم کنه، خیلی فوریه!
من با win avr کد زدم و الان این خطاعا رو میده:
کد:
../testavrstd11.c:1: error: MCU 'atmega32a' supported for assembler only ../testavrstd11.c:6: error: 'DDRD' undeclared (first use in this function) ../testavrstd11.c:7: error: 'PORTD' undeclared (first use in this function) ../testavrstd11.c:6: error: for each function it appears in.) ../testavrstd11.c:7: error: 'PORTD' undeclared (first use in this function)
کد:
#include <avr/io.h>
#include <util/delay.h>
int main(void) {
DDRD=0x60;
PORTD=0x00;
while(1) {
PORTD = 0b00000010;
_delay_ms(200);
PORTD = 0b00000000;
_delay_ms(200);
}
return 0;
}
خواهش میکنم اگر اکسی بلده کمکم کنه، خیلی فوریه!





دیدگاه