Author Topic: timer commands ATmega8  (Read 7388 times)

0 Members and 1 Guest are viewing this topic.

Offline dannytemmermanTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 0
timer commands ATmega8
« on: April 25, 2009, 08:01:03 AM »
Can somebody say me what the commands are o the timers on the 50$ robot?
I already have read the file timer.h, but I still don't understand how it works.
I ave already red the tutorial on timers on the site. But I don't now what I need to write down as code in a program for the timers to start, stop and read.
I think that this blog will be good for newbies and beginners who has the same problem.
So please can someone give a good answer  that anyone can understand.


Thanks

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: timer commands ATmega8
« Reply #1 on: April 25, 2009, 10:52:04 AM »
This is what you need:
http://members.shaw.ca/climber/avrinterrupts.html

Read it. Its not as long as it looks.
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline dannytemmermanTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 0
Re: timer commands ATmega8
« Reply #2 on: April 25, 2009, 11:53:52 AM »
This is what you need:
http://members.shaw.ca/climber/avrinterrupts.html

Read it. Its not as long as it looks.

This is about interrups.
I need code that explains how to set a timer on ATmega8 and how it read the value after a period of time.
By example if you want to now how long a signal is you use a timer and read it when the signal is done.

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: timer commands ATmega8
« Reply #3 on: April 27, 2009, 01:30:16 PM »
If you read that page you would know that it is exactly what you need to read.
United States Marine Corps
Infantry
Returns to society: 2014JAN11

 

SMF spam blocked by CleanTalk