Hallo Kampi,

danke für deine Antwort. Im Folgenden ist der Programmcode. Atmel Studio sagt mir, dass er erfolgreich flashen konnte und die Hex Datei ist auch nicht leer. Wenn ich vom uC lese
erhalte ich auch das korrekte .hex File. Nur macht er nichts, obwohl er was machen sollte. Defekt ist das Board mit ziemlicher Sicherheit nicht, weil bis vor kurzem das bei Auslieferung bespielte Testprog.
noch einwandfrei geklappt hat.

SourceCode:

#include <util/delay.h>
#include <avr/io.h>

/*### Ports setzen ###*/

//Ports auf HIGH setzen
static inline void setportaon(const uint8_t n)
{PORTA |= (1<<n);} //set PORTA.n high

static inline void setportbon(const uint8_t n)
{PORTB |= (1<<n);} //set PORTB.n high

static inline void setportcon(const uint8_t n)
{PORTC |= (1<<n);} //set PORTC.n high

static inline void setportdon(const uint8_t n)
{PORTD |= (1<<n);} //set PORTD.n high



//Ports auf LOW setzen
static inline void setportaoff(const uint8_t n)
{PORTA &= ~(1<<n);} //set PORTA.n low

static inline void setportboff(const uint8_t n)
{PORTB &= ~(1<<n);} //set PORTB.n low

static inline void setportcoff(const uint8_t n)
{PORTC &= ~(1<<n);} //set PORTC.n low

static inline void setportdoff(const uint8_t n)
{PORTD &= ~(1<<n);} //set PORTD.n low

int main(){
int i=0;
for(i=0;i<8;i++)
setportaon(i);
while(1);
}
Klicke auf die Grafik für eine größere Ansicht

Name:	Programmieren_AVR.jpg
Hits:	10
Größe:	39,5 KB
ID:	23762

MfG
Overholt