Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] SPI on an ATmega not quite working

2004-02-03 by Brian Dean

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/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.