0
Offline
Jr. Member
Karma: 0
Posts: 79
Arduino rocks
|
 |
« on: January 04, 2013, 05:02:28 pm » |
I'm wanting to run the 1284P directly from lithium (4.2V peak, 3.7V nominal) with a LDO 3V3 regulator (dropout ~3.4V). Page 325 of the Atmel datasheet ( http://www.atmel.com/Images/doc8059.pdf) shows the speed grades for the chip. My first question is to ensure I understand the graph correctly. Since it's linear it seems like a simple cross-multiplication to get the exact speed at a given voltage. If my understanding/math is correct... 2.7V @ 10MHz (given) 3.4V @ 12.58MHz (calculated for regulator dropout) 3.7V @ 13.7MHz (calculated for lithium nominal) 4.2V @ 15.55MHz (calculated for lithium peak) The second question is that assuming the above is correct I understand I'll be overclocking a bit at 16MHz, especially as the batteries drain. Has anyone else done this? Maybe with a 328P and can let me know if things went well or they had problems? I feel like I've read that people have done this without any issue but since this is a small-run commercial product I'm working on I don't want it to be unstable. Any advice here is appreciated -- thanks in advance!
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6354
|
 |
« Reply #1 on: January 04, 2013, 06:57:31 pm » |
assuming the above is correct I understand I'll be overclocking a bit at 16MHz, especially as the batteries drain.
I'm confused. Are you running the processor off the 3.3V regulator or directly off the battery? If you use regulated voltage the battery voltage won't make a difference.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #2 on: January 04, 2013, 06:59:26 pm » |
Has anyone else done this? Yes, and it is not a problem, unless you are designing for NASA.
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2307
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #3 on: January 04, 2013, 07:27:25 pm » |
@ *dhenry*... Don't quit your day job. Nasa?...
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Offline
Sr. Member
Karma: 11
Posts: 393
|
 |
« Reply #4 on: January 05, 2013, 04:35:57 am » |
Has anyone else done this? Maybe with a 328P and can let me know if things went well or they had problems? I feel like I've read that people have done this without any issue but since this is a small-run commercial product I'm working on I don't want it to be unstable.
Any advice here is appreciated -- thanks in advance!
The clocking/voltage specs seem to be very conservative. I (and many others) have run atmega and attiny devices at 16MHz with 3.3V, for example, without any observable problems. Indeed, I've never heard or seen *any* report of a problem overclocking these outside of the datasheet specs. I personally haven't tried running at a lower voltage than 3.3V at 16MHz, so couldn't tell you where the practical cut-off is. There must be limits, though, and although it is possible to disable brown-out reset completely by fuse settings, I wouldn't recommend it -- it could be coincidence, but the only 328p chip that has mysteriously died on me (even HV programming couldn't get a response from it) was one that I had completely disabled BO resets. I now routinely run BO reset at 2.7V for a 3.3V powered device.
|
|
|
|
« Last Edit: January 05, 2013, 04:46:25 am by pico »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25443
Solder is electric glue
|
 |
« Reply #5 on: January 05, 2013, 04:42:34 am » |
But note that running outside these parameters all bets are off regarding temperature range of the device, life time of the device, and reliability of the device.
Going outside published parameters is only what idiots do, like our dear henry.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 11
Posts: 393
|
 |
« Reply #6 on: January 05, 2013, 04:49:09 am » |
Going outside published parameters is only what idiots do.
wimp 
|
|
|
|
|
Logged
|
|
|
|
|
Rapa Nui
Online
God Member
Karma: 16
Posts: 888
Pukao hats cleaning services
|
 |
« Reply #7 on: January 05, 2013, 05:04:17 am » |
You may consider to set "Full-swing Crystal.." ("Full Swing Oscillator..") fuse to be on the safe side.. http://www.engbedded.com/fusecalc
|
|
|
|
« Last Edit: January 05, 2013, 05:14:58 am by pito »
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 219
|
 |
« Reply #8 on: January 05, 2013, 04:35:46 pm » |
I've run ATmega328's @ 16MHz @ 3.3V. One is connected to a nRF24L01 wireless module and a couple of I2C sensors. Have not had any issues.
|
|
|
|
« Last Edit: January 05, 2013, 06:05:59 pm by Bajdi »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25443
Solder is electric glue
|
 |
« Reply #9 on: January 06, 2013, 12:34:33 pm » |
Going outside published parameters is only what idiots do.
wimp  Idiot 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25443
Solder is electric glue
|
 |
« Reply #10 on: January 06, 2013, 12:38:42 pm » |
I've run ATmega328's @ 16MHz @ 3.3V. One is connected to a nRF24L01 wireless module and a couple of I2C sensors. Have not had any issues.
So have you tested this over the full temperature range, over the full voltage tolerance range. Have you tested the voltage thresholds of the inputs, the voltage outputs and loading. The propagation delays and all the machine op codes? How many samples have you tested? No I thought not. A simple functional test tells you absolutely nothing but yet beginners often think it is the be all and end all. It is not.
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 219
|
 |
« Reply #11 on: January 06, 2013, 02:49:53 pm » |
For hobby stuff I see no reason to not try it. A crystal is easily swapped if it doesn't work. The downside is that when you run in to trouble you will keep guessing if it's the mcu that is acting strange or if your code is buggy. If I would make a commercial device I would stick to what the datasheet says. Some people have no problem in selling boards that don't meet the specifications. I've seen a Chinese Arduino clone which has a jumper to switch between 3.3V and 5V and has a 16MHz crystal. When I was a student I spent most of my free time overclocking cpu's using a LN2 setup just to see what the max frequency was. Some cpu's it was possible to run them at 1.5-2x the rated clock frequency, would only work for a couple of minutes though :p When I last ordered some 16MHz crystals from Tayda I saw that they also sell 25MHz crystals so I couldn't resist and bought some
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 11
Posts: 393
|
 |
« Reply #12 on: January 08, 2013, 10:13:43 am » |
So have you tested this over the full temperature range, over the full voltage tolerance range. Have you tested the voltage thresholds of the inputs, the voltage outputs and loading. The propagation delays and all the machine op codes? How many samples have you tested?
Yawn 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #13 on: January 08, 2013, 05:58:52 pm » |
For hobby stuff... Some among us like to fancy themselves as designers for NASA.
|
|
|
|
|
Logged
|
|
|
|
|
Upstate NY
Offline
Full Member
Karma: 2
Posts: 164
|
 |
« Reply #14 on: January 08, 2013, 11:47:22 pm » |
If all you are going to be doing is to flash an LED on the Arduino board, then you can get by going out of spec. Who knows or cares if it misses a flash or hangs up and does not work. But if you are doing something serious like making an alarm system, replacing a controller for your dish washer or building a keypad to open your garage door, then you need to be exact and operate within the specs of all the parts you are using. It is easier to do it right the first time than to figure out what is wrong.
|
|
|
|
|
Logged
|
|
|
|
|
|