does tend to read better then:
DDRA = 0b11111111;
However it also comes with downsides. Such as slightly larger code (example, the DDRA code above sets 8 ports at a time), and other side effects. One of which I came across today...
Seems the default Arduino boot loader does not always support watchdog timers in the 3.3v version. (See here for some insight: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1123964 )
This impacts the current code in two ways:
- Reliability with availability of Watchdog
- Us of watchdog function to force a reset of the code (ala, during a recoverable fault)
I will need to research a bit more how to get the watch dog functioning. Clearly I can modify the boot loader, and that in the end might be what needs to be done. But bother - kind of gets away from the 'simple integrated programming environment'