Cat,
All you emails seems to me to somehow keep pointing to Power Supply.
BrownOut condition during start-up?
If I press the reset button all is fine, so maybe strange things happen because power might go up too slow.
Can you verify this, purhaps a different supply? Hopefully.
Wish I could be of more help.
Mike
----- Original Message -----
From: Cat C
To: avr-chat@yahoogroups.com
Sent: Thursday, March 11, 2010 11:14 AM
Subject: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)
Me again... :-)
My code sends stuff over SPI, like this:
SPDR = something;
while(!(SPSR & (1<<SPIF))) //Wait for transmission complete
{ ; }
I know I should have a counter and get out with an error, but... that's beside the point...
This used to work fine, but at some point it started to get stuck on the "while" first time I power up the board.
It works fine after a reset.
Any ideas please?
Thanks,
Cat
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]Message
Re: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)
2010-03-11 by Mike
Attachments
- No local attachments were found for this message.