Pages: [1]   Go Down
Author Topic: Timer Used  (Read 357 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I have a question. I want to mix normal avr-gcc code with arduino.
I am using the timer one 16 bit in CTC Mode on Pin 26 on the atmega1280.

Which timer is used by delay() or millis() and can I still use them when using the settings mentioned above?

Greetz, Mic
Logged

Central Europe
Offline Offline
Edison Member
*
Karma: 7
Posts: 1220
Use the Source, Luke.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The 8-bit Timer0 is used on the Duemilanove for millis() and delay(). I didn't see any special code for the mega so it should be the same for both.

Korman
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you! I will try playing with my arduino. Hope it works!
Logged

Pages: [1]   Go Up
Jump to: