Gast
#515006
Hallo Leute, ich versuche ein programm im c zu schreiben. in meinem
programm möchte ich jede 70ms ungefährt ein interrupt aufrufen um das 5.
bit des Ports D(OC1A)Toggle. ich habe ein code geschrieben aber bei der
kompilierung habe ich 2 fehler meldung und ich verstehe nicht was die
fehler bedeutet. ich zeige hier Ihnen mein code und untern steht die
Fehler meldung. und ich bitte Ihre Hilfe P.S.: meine Platine ist die
ATmega16 von ATmel und ich bin eine new kommen im Bereich
Mikrocontroller Programmierung
und ich Bitte Ihre verständnis.
#include <avr/io.h>
#include <stdint.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#define isr(vector)
int main(void){
DDRD=0x32; /*pin 5 des Ports D setzen*/
TCNT=0x0000; /*Counter auf null initialisieren*/
OCR1A=0x03EA; /*es wird bis zu 1000 dez. gezählt*/
ISR_Timer(){
TIMSK=0x10; /*output Compare A Match Interrupt Enable*/
TIFR=0x10; /*Aufruf des Interrupt um das bit zu Toggle*/
}
while(1){
}
return 0;
}
Fehler meldung:
-------- begin --------
avr-gcc (GCC) 4.1.1 (WinAVR 20070122)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
make.exe: *** No rule to make target `main.o', needed by `main.elf'.
Stop.
> Process Exit Code: 2