Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top