The BODS & BODSE defines do not exist in iom2560.h and google hasn't helped either. I'm wondering why such an oversight - any ideas?
j514:
The BODS & BODSE defines do not exist in iom2560.h and google hasn't helped either. I'm wondering why such an oversight - any ideas?
That is certainly incredibly bad.
Can you please post which page of the Atmega2560 datasheet references the BODS and BODSE registers?
Hi Nick,
I was actually trying your examples at http://gammon.com.au/forum/?id=11497 when I ran into the issue. The datasheet only refers to the BOD fuse (eg: pg62) so I'm wondering if the omission is intentional.
I can't see from the datasheet where you can temporarily disable brown-out, like you can in the Atmega328.
Maybe the feature doesn't exist? You might just have to set the fuse to disable brown-out detection, if you want to operate under low power.
Fuses it is then. Thanks for having a look, and for the really useful tutorials on your site!