Hallo alle, ich habe ein Problem mit meinem ATtiny45.
Ich möchte gerne zu Testzwecken, dass er, sobald Pin PB1 den Zustand ändert, PB0 auf low (0) setzt.
kann sich mal jemand den code ansehen?

#include <avr/io.h>
#include <avr/interrupt.h>
#ifndef F_CPU
#define F_CPU 8000000
#endif
#include <stdint.h>
#include <util/delay.h>
#include <inttypes.h>

int main(void)
{
SREG |=(1<<7);
GIMSK |=(1<<5);
PCMSK |= (1<<1);


DDRB = 0x00;
PORTB = 0xFF;


}


ISR(PCINT1_vect)
{

DDRB = 0x01;
PORTB = 0xFE;
}

danke im Voraus, marco