PJRC.COM Offline Archive, February 07, 2004
Visit this page on the live site

skip navigational linksPJRC
Shopping Cart Checkout Shipping Cost Download Website
Home MP3 Player 8051 Tools All Projects PJRC Store Site Map
You are here: 8051 Tools PAULMON Monitor Manual Single-Step Run Search PJRC

PJRC Store
8051 Dev Board, $79
LCD 20x2 Display, $11
Serial Cable, $5
12 Volt Power, $8
More Components...
8051 Tools
Main Page
Software
PAULMON Monitor
Development Board
Code Library
89C2051 Programmer
Other Resources

PAULMON2's Single-Step Run Feature

Limitations:

During single step PAULMON2 enables INT1 as low level triggered, so that it causes interrupts endlessly. However, the 8051 hardware is designed so that it will always execute one instruction after returning from an interrupt before it services the next interrupt. In this manner, your program is run one step at a time. The single step run is not emulation... it is really being run by the hardware, and the single-step run feature is just an interrupt that shows you what instructions was executed.

>* the documentation is - as you state - not complete. On entering single step
>mode I found that my program got changed - documenting the interrupt rerouting in
>the single step section will help....

That's a feature, sort of...

The EPROM contains a LJMP to a location is RAM, where you would supposedly put for code for interrupt #1. Single-Step uses interrupt #1. To avoid putting any wierd code other than a single LJMP (as was done in version 1), PAULMON2 figures out where that LJMP will just to, and writes another LJMP into the RAM. If you have written code or stored data in those three locations, well, it will be wiped out.


PAULMON2 Documentation, Paul Stoffregen
http://www.pjrc.com/tech/8051/pm2_docs/single-step.html
Last updated: November 28, 2003
Status: The PAULMON2 Docs need a lot of work...
Suggestions, comments, bug reports??? <paul@pjrc.com>