ARM Technical Support Knowledge Articles

SIMULATE UCFGX REGISTERS FOR PHILIPS LPC9X

Applies to: uVision Debugger

Answer


Information in this article applies to:


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

Article last edited on: 2005-09-22 12:26:18

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential