?? abstract.txt
字號:
Abstract for DS400 SROM Example
===============================
This example demonstrates how to use the SROM memory classes for the Dallas
DS80C400. This example uses the memcpy function to copy a function in the
SROM memory class (which is located in CODE memory) to von Neumann mapped
XDATA (starting at 0x110000) for execution.
This kind of thing is use ful when you have a function that resides at one
location in memory but which executes at another. This would occur if you
created a function to reprogram a device's FLASH memory.
1. Currently, C51 V7.10 does not support complete instruction set simulation
of the DS80C400. In the Options for Target - Debug - CPU DLL - Parameter,
change the -c400 to -c390. This directs the simulation engine to use DS390
instruction set simulation. This is required for Contiguous mode simulation.
2. Review the contents of the SROM.H header file and pay careful attention
to the modifications. Note the definition of the SROM_PS_TRG_FD macro. The
upper bit of the address is cleared because the target is actually von Neumann
mapped XDATA.
3. The debugger include file (DEBUG.INI) sets the simulator memory map so that
this area of RAM is von Neumann (writes to XDATA:0x110000 also appear in
CODE memory at 0x110000).
To see this example work, you may simply single-step thru it or just click Run.
Open the Port 1 dialog to see the port pins changing as the program executes.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -