Motorola CPU32 User's Guide Page 92

  • Download
  • Add to my manuals
  • Print
  • Page
    / 205
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 91
CPU32 Emulation 91
Chapter 6: Using Internal Registers (SIM and EMSIM Registers)
Configuring the SIM Registers
Configuring the SIM Registers
Summary
If you have a boot ROM that initializes the SIM registers, you don’t have
to configure the EMSIM registers in order to load code and run your
target. It is a good idea to configure the EMSIM registers anyway, since
the EMSIM registers are used configure an analysis probe. Page 93
discusses how to copy the SIM registers into the EMSIM registers.
If you do not have a boot ROM, then you will need to initialize the
EMSIM registers first so that you can communicate with the memory of
the processor. Once the EMSIM registers are defined, then every reset
followed by a break will write the EMSIM registers to the processor’s
SIM registers.
Once you have configured the EMSIM registers, it is a good idea to save
a configuration. Loading the configuration will restore the values of all
configuration options, including the EMSIM registers.
How SIM Register Values are Set
These registers are typically initialized by the CPU32 executing the
reset initialization code. During development this code may not be
available or may not exist on the target system. To aid in development,
the most important of these registers can be set directly by the
emulator. This enables such functions as clock speed, chip selects, and
location of internal memory to be established prior to executing any
user code. Once these registers are set, resources in the target system
can be accessed in the same manner as the processor would access
them after executing the reset initialization code. Activities such as
downloading code into the target system can now be performed
through the emulator.
The emulator copy is identified by the prefix "EM" on the register name
(e.g. EMSYNCR is the emulator copy of the SYNCR register) and are
referred to as the EMSIM. The EMSIM registers are transferred to the
processor registers when the target processor is reset while it is
running in the BDM monitor.
Page view 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 204 205

Comments to this Manuals

No comments