Pages: [1]   Go Down
Author Topic: how to change crystal frequency for MCU  (Read 551 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys,
           there is any provision so i can change crystal frequency via Arduino IDE??
in my case
i have mega ADK in that board crystal was damaged and i am not good in soldering

if i change fuse bit of Atmega2560 use internal crystal so there is no need of external crystal in this case my ADK board working fine ?? even USB
for this method would i change crystal frequency by IDE if yes so how could i do this??

Any other suggestion??

Thanks in Advance       
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Use a if define / undefine / define sequence.

Logged

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12446
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can but try it.  The internal oscillator is not a crystal, its an RC oscillator and isn't as stable and I think its 8MHz.  You will need to use the
right board setting (which probably means creating a new entry in boards.txt with the right clock frequency - you would clone
the existing Mega2560 entry and rename it and change the one line that defines the clock).
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: