Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)

2010-03-15 by Bruce Parham

Hi Cat,

This may have already been asked and I missed it but, in your 
initialization code, do you
set the CS pin to OUTPUT before or after you enable the SPI port? If 
it's done after, an
initial low voltage on the pin may be forcing the SPI port into slave 
mode as soon as it's
enabled.

Bruce

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.