Hallo!

Ich wollte nur wissen wie man bei diesem Programm den Pullup Wiederstand auf PINB2 festlegt



Code:
#include <avr/io.h>

int main ()
{
int n;
DDRB = (1<<PB3);
while(1)
{
if ( PINB & (1<<PINB2) ) { /* Überprüfen ob 3. Bit in PINB gesetzt ist*/
 	PORTB |= (1<<PB3); /* PB3 Einschalten */
	for (n = 0; n < 2000; n++); /* WARTEN */
    PORTB &= ~(1<<PB3); /* PB3 Ausschalten */
    for (n = 0; n < 2000; n++);/* WARTEN */
   }


}
}
mfg

chw-load