Keil Logo

µVISION DEBUGGER: SIMULATE UCFGX REGISTERS FOR PHILIPS LPC9X


Information in this article applies to:

  • µVision Version 2.38 or higher

QUESTION

I have a problem with simulating the UCFG1 register in the LPC simulator. It seems that the simulator defaults to UCFG1=0 which gives the setting Crystal (High Frequency). I know that it is possible to change the settings in the Peripherals - System Configuration dialog, but I want to automate my settings.

Is there a way to automate these settings, for example by using an Debugger INI file?

ANSWER

This may be achieved by putting the desired value for UCFG1 at C:0xFFF0 in your application. This is automatically done when you configure the standard STARTUP file that is part of the Keil compiler package. The most up-to-date version of the LPC900 startup file (start900.a51) can be found at start900.a51 Download.

If you do not have a startup file, you may set the VTREG UCFG1 to initial value and perform a reset. Note that the UCFG1 value is only read at CPU reset.

SEE ALSO

Last Reviewed: Thursday, September 22, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.