Gast
#238955
Also ich verstehs echt nicht mehr ...
Ich habe folgenden Code:
#include <avr/io.h>
#include <avr/interrupt.h> // sei()
#include <avr/signal.h> // SIGNAL
#define XTAL 1000000
int main(void) {
/* configure all portD bits as input */
DDRD = 0x00;
// configure all PortB bits as output
DDRC = 0xff;
PORTC = 0xff;
//sei();
while(1);
return 0;
}
SIGNAL (SIG_INTERRUPT0) {
PORTB = 0xff;
}
Nun sollte doch nachdem ich den AVR mittels winavr/avrdude programmiert
habe, der Port C auf High Pegel sein .. oder ?
Interessanterweise ist er das aber nicht .. weiss vielleicht jemand was
ich falsch mache ?