avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Strange ET-Base ATmega-128 Behavior


From: Peter Fuhrmann
Subject: Re: [avr-chat] Strange ET-Base ATmega-128 Behavior
Date: Tue, 15 May 2012 23:05:28 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

 Am 15.05.2012 08:19, schrieb tomdean:
On 5/14/2012 9:15 PM, Peter Fuhrmann wrote:
 Am 15.05.2012 02:35, schrieb tomdean:
I have several ET-Base ATmega 128 boards that behave strangely on power cycle or reset.

On random trials, the device will not restart. Frequently, this alternates Ok, fail, Ok, fail...



I know that Problem. this happens, wehn you don't programm the AVR's SS pin as an output before initing the SPI-Interface. If SS is programmed as input while SPI is on, it will automatically send the SPI-Interface to slave mode when a high to low transition occurs. You must set SS as output before configuring the SPI!

Thanks,

I set SS to an output AFTER I initialized the SPI!!!!!


Yes, I saw that in your code.....

Is it working now?

Best Regards,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]