Setting clock speed higher than the model designates

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting clock speed higher than the model designates

1,851 Views
advent_sm
Contributor I

I just started getting this low level, but had a question about clock speeds that I can't seem to find and answer elsewhere.

If I am using a MC68332ACAG25 but have to use a MC68332ACAG20 in the future, is it possible to clock the AG20 up to 25MHz through any software means?  Or is the AG20 effectively hard capped at this clock speed?

0 Kudos
Reply
2 Replies

1,825 Views
scottm
Senior Contributor II

How lucky are you feeling?

Some chips are pretty forgiving. We once had a small batch of boards assembled with the wrong crystals and they were running at 1.5x their maximum rated clock frequency. Only noticed it because a DSP function wasn't working right due to the wonky sample rate.

You might get away with it, particularly if you're not at the edges of the temperature and voltage ranges, but I wouldn't do it on purpose in a commercial product. You might be chasing weird intermittent peripheral glitches, or it might just fail completely at some point.

Scott

0 Kudos
Reply

1,832 Views
TomE
Specialist II

Read the SIM chapter to see how these chips work. Basically you can either connect a 32,768Hz crystal and use the internal PLL to generate the clock (at whatever frequency you want) or you can generate the 16MHz, 20MHz, 25MHz (or anything you want) externally and feed that in.

External oscillators have to have very well controlled duty cycles, so the 32,768Hz option may be easier unless your system requires the frequency stability of a high speed clock.

There is no "frequency locking". Different grades of chip are guaranteed to run up to a specific speed. You can try overclocking, but if it fails or is unreliable, that's on you. You may be able to overclock over a limited temperature range. Or maybe not. Basically if you're doing this for a hobby, then you can overclock as much as you like. If you're making something for production or sale, then you can't guarantee it will work reliably if you overclock it.

The tables in the SIM chapter give the programming for different frequencies, and shade the sections that generate clock speeds above the limits in a different colour.

Tom

 

0 Kudos
Reply