Delay command in WinAVR

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!!
I have to program Atmega16 using WinAvr software.
I am starting with a simple program in which I want to add a DELAY. Can anyone please tell me how can i do that. Is there any header file to be added, and how much delay can i put in that instruction or can I put any value for the delay for eg 1ms or 1000ms or 3000ms?
Thankyou in advance.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The user manual is here:

http://www.nongnu.org/avr-libc/u...

The page specifically about the delay functions is here:

http://www.nongnu.org/avr-libc/u...

If you haven't read the manual yet now may be a good moment.