Atmega32 Running slow at half frequency

Status
Not open for further replies.

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
862
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,187
I am using Atmega32.
using delay routine _delay_ms(10000)
from
#include <util/delay.h>
The timing I am getting is 20 seconds instead of 10 seconds.
What could be probable reason !!.
 
Last edited:

Did you set the clock frequency with fcpu?
 

Working with AVRStudio, and frequency is properly set.
Actual crystal frequency 11.0592 MHz reducing it to half of the value makes the timing correct. As I have to use serial communication in remaining modules, this may create problems.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…