you can use the User Monitor, see AN2305. It works with P&E or Metrowerks tools and uses the internal Oscillator. You can load it into the flash memory with forced monitor mode on empty devices using the internal oscillator. The Problem is to get the Oscillator Trim value first. You can read the trim value while in forced monitor mode and update the user monit code to write the correct trim value. A better way is to trim the internal oscillator in your application. To do that you have to run a little program, look at AN2317. You have to program the flash to do so and the next time you can´t use forced Monitor mode to load the user monitor. I think P&E have a small programm to trim the oscillator that runs from ram.
Thank you a lot, I have read this application note and I will perform somme tests now.
Retrieving data ...