|
From: | Peter Fuhrmann |
Subject: | Re: [avr-chat] Strange ET-Base ATmega-128 Behavior |
Date: | Tue, 15 May 2012 06:15:52 +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 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!
Best Regards, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |