Beruflich Dokumente
Kultur Dokumente
This document will guide you through setting up THRSim11 to properly simulate the
Motorola 68HC11 Evaluation Board (EVB) that comes in the lab kit for ECE 447 offered
at George Mason University in Fall of 2006. It assumes you have already correctly
installed THRSim11 and you have access to the buffalo.h header file.
You should get a screen similar to [Figure 1] with the MASON splash in the background.
Now we need to setup the memory map in THRSim11. Because we are simulating the
Evaluation Board (EVB), the simulation setup will actually need to write data in what is
normally ROM on the EVB. THRSim11 will stop us from writing to memory that is
designated as ROM, so for simplicity, we will set everything to RAM.
Verify you are selecting the correct menu item by referring to [Figure 2].
Figure 2, Memory Configuration menu item
3. Click YES
THRSim11 will nicely ask you if you are sure you want to exit
4. Click EXIT
The THRSim11 Memory Configuration Tool will now open. Follow this procedure to set
the address space to RAM. Afterwards verify that your configuration matches [Figure 3].
5. Select User defined from the drop down box in the top left of the window
6. Uncheck all ROMx enabled sections in the second row
7. Set the Ram sections according to this table:
RAM0 is by default always enabled. We are using the RAM1 section to make the rest of
memory RAM. Note that this covers all of memory space except for a small section
$01FF-$1FFF. This is fine. Some of that area is for memory mapped I/O. Ensure that
the remaining RAM and ROM sections are unchecked. It is also OK to leave the LCD
enabled checked if you like, but do not change any of the addresses in the third row (IO
and LCD).
Figure 3, Memory Configuration Tool
THRSim11 will reload and is now ready to simulate your code. If all you are doing is
setting THRSim11 up to simulate, you are done. If you are ready to simulate actual
program code then follow the remaining steps.
We need to include a single header file in our application for our code to simulate
properly.
Now you are almost ready to simulate the EVB with Buffalo running on it. Compile your
code as normal in the SciTE editor and run it.
THRSim11 will open if it isn t already running and bring your code up. You are now
ready to start the simulation.