CodeWarrior and Trim Value Calculation for the MC68HC908KX8

cancel
Showing results for 
Search instead for 
Did you mean: 

CodeWarrior and Trim Value Calculation for the MC68HC908KX8

Jump to solution
3,394 Views
bespenschied
Contributor III
Is there a method of calculating the Trim Value for the 908KX8 cpu internal clock in CodeWarrior or the true-time simulator/debugger? I have been using an external Oscillator and am now ready to try the internal timer. I keep seing references in these forums for this calculation using the P&E tools but I have not been able to find any specifics. I am using a simple MON08 interface I built to interface my target to CodeWarrior.
 
bcde
 
Labels (1)
Tags (1)
0 Kudos
1 Solution
241 Views
peg
Senior Contributor IV

Hi Brian,

AFAIK there is no direct support for auto clock trimming in CW (hiwave) even though there is an option to do the trim under advanced options.

It seems to depend entirely on your interface.

If you are using a P&E USB multilink or cyclone etc it will get the P&E part of the software to do the trim for you.

So to summarise AFAIK the only time you get auto cal in CW is with S08's using P&E BDM interface. (Maybe Softec as well???).

If anyone knows something different please pipe in as I would like to know as well.

So you are stuck with manual calibration and then being annoyed by CW's insistance on erasing before flashing and zapping your NV trim.

BR Peg

 

View solution in original post

0 Kudos
3 Replies
242 Views
peg
Senior Contributor IV

Hi Brian,

AFAIK there is no direct support for auto clock trimming in CW (hiwave) even though there is an option to do the trim under advanced options.

It seems to depend entirely on your interface.

If you are using a P&E USB multilink or cyclone etc it will get the P&E part of the software to do the trim for you.

So to summarise AFAIK the only time you get auto cal in CW is with S08's using P&E BDM interface. (Maybe Softec as well???).

If anyone knows something different please pipe in as I would like to know as well.

So you are stuck with manual calibration and then being annoyed by CW's insistance on erasing before flashing and zapping your NV trim.

BR Peg

 

0 Kudos
241 Views
bespenschied
Contributor III

Thanks peg!

I only have an interface I made so I guess I will get busy on learning how to do it manually.  It is worth it if I can save the cost of a digital oscillator or crystal.

bcde

 

0 Kudos
241 Views
peg
Senior Contributor IV

Hi Brian,

Take a look at AN2498, AN2312 and AN2496.

Regards Peg