im trying to set my system clock prescaler on my Atmega48.
The datasheet says
1. Write the Clock Prescaler Change Enable (CLKPCE) bit to one and all other
bitsin CLKPR to zero.
2. Within four cycles, write the desired value to CLKPS while writing a zero to
my code was
CLKPR = 0x80;
CLKPR = 0x01;
but when i check my pulse width modulation on one of the pins, the frequency is still the same.
any ideas what is wrong ?