ARM Technical Support Knowledge Articles

SIMULATING RP0H ON THE C167

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

Is there a way to simulate the inputs to RP0H that occur during reset on the C167 devices?

ANSWER

RP0H is a read-only register that is initialized from P0H during reset. This is what the Infineon manual has to say...

"With the end of reset, the selected bus configuration will be written to the BUSCON0 register. The configuration of the high byte of PORT0 will be copied into the special register RP0H. This read-only register holds the selection for the number of chip selects and segment addresses. Software can read this register in order to react according to the selected configuration, if required.

When the reset is terminated, the internal pullup devices are switched off, and PORT0 will be switched to the appropriate operating mode."

The Keil uVision Debugger starts working after reset has occurred. Therefore, there is no way you can change or alter the contents of RP0H directly. By default, the debugger starts with RP0H set to a value of 0x007F.

You may use the EBC (external bus configuration) virtual target register to set the reset configuration for the external bus. The following values are valid:

You may use the CLKCFG virtual target register to set the reset configuration for the clock. The following values are valid:

Once you set the CLKCFG or EBC, you must reset the simulated CPU before the new values are used and placed into RP0H.

You could use the following debugger script to do that:

EBC = 2
CLKCFG = 3
RESET

Note that this is just the reset configuration. The startup code (in START167.A66) performs the REAL initialization of the microcontroller.

Article last edited on: 2004-06-28 21:17:52

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