On Mon, Feb 02, 2004 at 10:13:53PM -0500, Dave VanHorn wrote: > The MISO pin is defined as input in DDR, right? Yep. On the ATmega128, MISO is bit 3 of PORTB (mask 0x08). I initialize DDRB to 0x07 which sets /SS, SCK, and MOSI to outputs and MISO as an input. -Brian -- Brian Dean, bsd@bdmicro.com BDMICRO - Maker of the MAVRIC ATmega128 Dev Board http://www.bdmicro.com/
Message
Re: [AVR-Chat] SPI on an ATmega not quite working
2004-02-03 by Brian Dean