Yahoo Groups archive

AVR-Chat

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

Message

Re: Code stuck waiting for SPI transmission but only after power-up. (ATMega644P) SOLVED!!!

2010-03-15 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, Bruce Parham <obparham@...> wrote:
> The data sheet just says, if it's an input, it should be high to
> keep the port in master mode.
If the SS pin doesn't have a pullup on it, it could be floating low enough to trigger the Master-to-Slave transition between the time when the controller is enabled and the SS bit is made an output.

In any event, it is best to set the SS pin direction and state *before* enabling the controller as Bruce advised.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

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.