Pages: [1]   Go Down
Author Topic: Hardware features used in Arduino  (Read 401 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a consolidated list somewhere of the various AVR hardware features used in the Arduino? I presume that the basic timers use Timer0, but I can't find any documentation that says that I can or can't use any of the other timers. If there isn't, I recommend placing on the resources page a simple list showing which Arduino functions use what hardware and what's open for the user to use.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26554
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Datasheets for the microcontrollers can be found here
http://www.atmel.com/products/microcontrollers/avr/megaAVR.aspx
Atmega328P, Atmega2560, Atmega32U4
You are free to code up whatever you want using the timers. If you don't need the millis()/micros() function, I think you could even user Timer0 without impacting stuff.
I think you really need to look at the source code that is downloaded for the IDE to answer  your question tho.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33432
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there a consolidated list somewhere of the various AVR hardware features used in the Arduino?
Basically no. The Arduino uses most of the hardware features in one for or another.
The data sheet is great in seeing what is available but the only thing I can think of they don't use is analogue comparator.

Quote
what's open for the user to use.
You can use them all.
Basically what you want to know is what will you loose if you mess about with some of these resources. For example all three timers are used for PWM as well as timer 0 doubling up for the millis functions. But you can use them if you don't mind not having that particular function.

Resource management is always a bit tricky especially if you are using libraries that do not state up front what resources they use.
Logged

Pages: [1]   Go Up
Jump to: