I have, on the way to my house, an Atmega168. I know about flashing the bootloader with an ICSP (or at least that it needs to be done). Is there a way to take advantage of the 20Mhz speed of the 168 without un-soldering the 16Mhz crystal on the board?
Unsoldering the crystal is easy. With one hand, grab the crystal gently with a small pair of needlenose pliers, heat one lead and pull gently until it comes out. Then do the other lead. You might put a socket in place of the crystal so you can change crystals without any more soldering.
Don't worry, though. Arduino works great with a 20 MHz 168!
D.
So I am guessing that the crystal only drives the Atmega chip then and doesn't do anything for the USB serial port?
Have you done this?
Yes I have, both on an Arduino NG and an Olimex AVR-P28 serial board. Both work fine. You will need a boot loader compiled for 20 MHz, and then change the F_CPU in preferences.txt. I can give you the .hex file for the bootloader if you need it.
D.
Please upload the .hex file somewhere (Playground?) so others can get it too.
Here is the 20 MHz bootloader for ATMega168:
:103800000C94341C0C944F1C0C944F1C0C944F1CA7
:103810000C944F1C0C944F1C0C944F1C0C944F1C7C
:103820000C944F1C0C944F1C0C944F1C0C944F1C6C
:103830000C944F1C0C944F1C0C944F1C0C944F1C5C
:103840000C944F1C0C944F1C0C944F1C0C944F1C4C
:103850000C944F1C0C944F1C0C944F1C0C944F1C3C
:103860000C944F1C0C944F1C11241FBECFEFD4E0BE
:10387000DEBFCDBF11E0A0E0B1E0EAE1FEE302C0AF
:1038800005900D92A230B107D9F712E0A2E0B1E0A5
:1038900001C01D92AC30B107E1F70C940F1D0C94E0
:1038A000001C982F8091C00085FFFCCF9093C6002C
:1038B00008951F93282F992787FD9095807F9070FA
:1038C00095958795959587959595879595958795E0
:1038D0008A304CF0982F995A822F8F708A304CF092
:1038E000182F195A08C0982F905D822F8F708A3038
:1038F000BCF7182F105D892F0E94511C812F0E9448
:10390000511C1F910895EF92FF920F931F93EE2485
:10391000FF2487018091C00087FD17C00894E11C37
:10392000F11C011D111D81E8E81686E9F80688E9F9
:10393000080780E0180770F3E0910301F09104019B
:1039400009958091C00087FFE9CF8091C600992733
:1039500087FD90951F910F91FF90EF9008950F9321
:103960001F930E94831C182F0E94511C0E94831CCD
:10397000082F0E94511C11362CF0175501363CF0CF
:10398000075508C01033D4F310530136CCF7003379
:103990000CF000531295107F100F812F992787FD8F
:1039A00090951F910F910895282F882351F090E052
:1039B0008091C00087FFFCCF8091C6009F5F2917D0
:1039C000B9F708951F93182F0E94831C803249F481
:1039D00084E10E94511C812F0E94511C80E10E94B1
:1039E000511C1F9108950E94831C803209F0089594
:1039F00084E10E94511C80E10E94511C089588239B
:103A000009F483E01092090220E030E02D9A2D980D
:103A10002F5F3F4F2817D0F32093090208950F938B
:103A20001F93CF93DF93000056985E9A80E48093B3
:103A3000C4001092C50088E18093C10086E08093A5
:103A4000C200259A83E00E94FF1C0E94831C8033E1
:103A500061F1813369F1803409F44AC0813409F499
:103A600050C0823409F45FC0853409F462C08035E7
:103A7000E1F08135D1F08235C1F0853509F45FC0C0
:103A8000863509F467C0843609F46BC0843709F4BD
:103A9000C6C0853709F41AC18637B9F680E00E949E
:103AA000E21C0E94831C8033A1F60E94F31CCDCF40
:103AB0000E94831C803249F684E10E94511C81E4FB
:103AC0000E94511C86E50E94511C82E50E94511CF7
:103AD00080E20E94511C89E40E94511C83E50E94EF
:103AE000511C80E50E94511C80E10E94511CADCF09
:103AF0000E94831C8638C8F20E94831C0E94F31C1B
:103B0000A4CF0E94831C803809F4F5C0813809F4E1
:103B1000F6C0823809F4F7C0883909F0BFCF83E0D6
:103B20000E94E21C92CF84E10E94D41C0E94F31CEC
:103B30008CCF85E00E94D41C0E94F31C86CF0E948B
:103B4000831C809305010E94831C809306010E94C0
:103B5000F31C7BCF84E00E94D41C80E00E94E21C16
:103B600074CF0E94831C809308020E94831C809360
:103B7000070280910B028E7F80930B020E94831CB0
:103B8000853409F4C4C08091070290910802892B02
:103B900089F0C0E0D0E007E011E00E94831CF8014A
:103BA00081938F0121968091070290910802C81796
:103BB000D90798F30E94831C803209F046CF809188
:103BC0000B0280FFBCC06091070270910802611572
:103BD0007105F1F0A0910501B09106019D0140E051
:103BE00050E0E7E0F1E0F999FECF32BD21BD8191CF
:103BF00080BDFA9AF99A4F5F5F4F2F5F3F4F46178C
:103C0000570789F7A60FB71FB0930601A0930501C8
:103C100084E10E94511C80E10E94511C16CF0E9439
:103C2000831C809308020E94831C809307020E94D9
:103C3000831C853409F471C080910B028E7F8093C0
:103C40000B028091050190910601880F991F9093B6
:103C50000601809305010E94831C803209F0F5CE95
:103C600084E10E94511C2091070230910802211525
:103C70003105E9F1C0E0D0E0E0910501F0910601E5
:103C80000BC081FF50C03196F0930601E09305010F
:103C90002196C217D30758F580910B0280FFF1CF10
:103CA000F999FECFF2BDE1BDF89A80B50E94511C92
:103CB000E0910501F09106013196F0930601E09341
:103CC00005012091070230910802E2CF0E94831C77
:103CD000803209F0BACE84E10E94511C8EE10E942C
:103CE000511C84E90E94511C86E00E94511C80E115
:103CF0000E94511CAACE82E00E94E21CA6CE81E066
:103D00000E94E21CA2CE8FE00E94E21C9ECE809117
:103D10000B02816080930B0236CF80910B02816091
:103D200080930B0298CF84910E94511C209107022E
:103D300030910802E0910501F0910601A4CF809135
:103D4000060187FD66C010920A02809105019091DC
:103D50000601880F991F90930601809305018091B9
:103D6000070280FF09C08091070290910802019626
:103D70009093080280930702F894F999FECF1127D7
:103D8000E0910501F0910601C7E0D1E080910702C2
:103D900090910802103091F40091570001700130A9
:103DA000D9F303E000935700E895009157000170A4
:103DB0000130D9F301E100935700E895099019907B
:103DC0000091570001700130D9F301E000935700D2
:103DD000E8951395103498F0112700915700017061
:103DE0000130D9F305E000935700E89500915700A2
:103DF00001700130D9F301E100935700E895329644
:103E0000029709F0C7CF103011F00296E5CF1124C8
:0A3E1000FFCE81E080930A0298CFF4
:023E1A00800026
:0400000300003800C1
:00000001FF
There is already a very good tutorial about burning bootloaders using AVR Studio in the playground.
Have fun!
D.
lol.
maybe we could get that as a file....Im all for copy and pasting but uh ..... well yea ....