Delay problem in ATMega32

Status
Not open for further replies.

Sathiesh Kumar

New Member
Hi to all...
I am using code vision avr software for programming ATMega32 in C language... when i use delay_ms(500) command it gives more than 500 ms delay.. what might be the problem.. Whether i have to change any settings...

Help me....
 
I use WinAVR software
there I need to create a "makefile"
in that file I need to define F_CPU, which means crystal frequency.
so if I am using crystal of 12MHz then I write, F_CPU = 12000000

if you are doing the same thing then u need to use the same value for F_CPU
 
can you post your code here...
so that we can find out the mistake, if any

if possible, post your circuit diagram
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…