Hello, In order to set the bit, you need to logical OR the bit.
DDRB |= _BV (PB0); to clear it DDRB &= ~_BV(PB0); Nayani > > 4: undefined reference to `__stack' > > > > > > #include <avr/io.h> > > > > int > > main(void){ > > while (1) { > > DDRB = _BV(PB0); > > }; > > } > > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list