[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Fw: internal Pull ups ATMega8?

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Fw: internal Pull ups ATMega8?
Date: Wed, 23 Jul 2003 10:26:49 +0200 (MET DST)

As "Stefan Goerres" <address@hidden> wrote:

>> how do i enable the internal pull ups for some pin on a port only?

As advertised in the datasheet: by setting the appropriate bits of
the correspnding PORTn register.

PORTB |= _BV(PB1);
DDRB &= ~_BV(PB1);
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]