Hi, I'm working with an ATTINY48 and AVR GCC. I'd like to be able to set the BODEN and BODLEVEL fuses programmatically in case some numpty (possibly me) forgets to burn the fuses during production.
I've set up the clock prescaler in the code which so far has been saving me an extra step when programming the devices, but I'm wondering it is possible to configure brown out this way too?
Here's the code I use to set the clock divider:
CLKPR = (1 << CLKPCE); // enable a change to CLKPR CLKPR = 0; // set the CLKDIV to 0 - was 0011b = div by 8 taking 8MHz to 1MHz