Pages: [1]   Go Down
Author Topic: boards.txt and timers  (Read 387 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the Arduino libraries take boards.txt into account when setting up timers for delay(), millis(), etc?

If I put together a 10MHz ATmega168 board and create a corresponding boards.txt entry, will the timing be correct?

I need to interface to some 3V peripherals, and at this point sacrificing the clock speed and dropping the whole system down to 3V (using the L model processor, of course) may be the easiest way to do it, assuming it doesn't cost me too much work on the software side.

thanks,
-j

Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There's some information here: http://www.arduino.cc/en/Hacking/OtherHardware

Basically, delay() and millis() should work, but delayMicroseconds() will be off.  If the clock is too far from 16 MHz, analogRead() might not work (since the prescale will be wrong).  The PWM frequency will be different, and there might be a few other things.  Serial communication should work fine.
Logged

Pages: [1]   Go Up
Jump to: