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?

asked Apr 13, 2019 at 18:36
\$\endgroup\$
1
  • \$\begingroup\$ Thank you so much! It works now, I set it as "Unprogrammed". \$\endgroup\$ Commented Apr 13, 2019 at 19:07

1 Answer 1

1
\$\begingroup\$

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

answered Apr 13, 2019 at 19:32
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.