About changing clocks and programming

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jdumond3
 
Posts: 16
Joined: Sun Jan 11, 2009 2:53 am

About changing clocks and programming

Post by jdumond3 »

I want to upgrade from an internal clock to an external crystal on an atmeag168. I have a few questions regarding this process.

1.) When I program and burn new fuse settings for the chip for the new external crystal does the crystal have to be in the circuit?
2.) If I were again to switch sources to a different external crystal which one would have to be in circuit when programming the chip? Similarly if I was to switch back to the internal clock would an external clock have to be present during programming?

I guess this can just be generalized as what do I do when changing clocks sources?

User avatar
jgotthardt
 
Posts: 33
Joined: Mon Dec 03, 2007 11:58 am

Re: About changing clocks and programming

Post by jgotthardt »

jdumond3 wrote:1.) When I program and burn new fuse settings for the chip for the new external crystal does the crystal have to be in the circuit?
No. To be able to program a device using ISP it must be running from the currently selected clock source. Once programming is complete the device will not function until the newly selected clock source is properly connected.
jdumond3 wrote:2.) If I were again to switch sources to a different external crystal which one would have to be in circuit when programming the chip? Similarly if I was to switch back to the internal clock would an external clock have to be present during programming?
As stated above, the device must be running from the currently selected clock source. Be careful though! An "external clock" and "external crystal oscillator" are different clock sources.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”