0
\$\begingroup\$

I have an ATMega328P microcontroller, and I'm learning how it is programmed. I wrote an example for Timer0 and uploaded it into the microcontroller. It works and a led blinks once a second in while.

When I try to simulate it in Proteus 8.0, the led blinks every 8 seconds. I set the properties of the microcontroller in Proteus but nothing was changed. Why is the Timer0 delayed in Proteus?

\$\endgroup\$
  • \$\begingroup\$ Thank you so much! It works now, I set it as "Unprogrammed". \$\endgroup\$ – Faruk ÜNAL Apr 13 at 19:07
1
\$\begingroup\$

By default, the CLKDIV8 fuse bit is programmed, dividing the internal 8MHz oscillator down to 1MHz. It should be unprogrammed.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.