CPU Frequency in AVR, CodeBlocks and Proteus -


well, i'm using code::blocks ide, , win avr compiler. f_cpu selected 8000000ul. i'm writing code atmega32. when run written code (*.hex file) in proteus design suite (isis) _delay_ms(1000) doesn't give delay 1sec. don't know if write or wrong, i've selected cksel fuses (0100) int.rc 8mhz in edit component. what's wrong? please....

have tried setting compiler optimization other -o0? avr-libc docs regarding delay* functions.

in order these functions work intended, compiler optimizations must enabled, , delay time must expression known constant @ compile-time.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -