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