English
Language : 

45111 Datasheet, PDF (31/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
5 The SX-Key Debugger
5 The SX-Key Debugger
The following is required to use the debug features:
• SX-Key Rev. E (or greater) – The SX-Blitz cannot be used for debugging.
• SX chip date code 9825 or later.
• No external clock source connected to the SX chip. This includes oscillator packs, crystals,
resonators and RC circuits.
• The SX-Key connected to the 4-pin programming header of the SX system to be debugged.
• The SX system must be powered.
Source code to be debugged must include the RESET directive (see Chapter 7.3.21), must have
WATCHDOG set to off, and must have 2 free words in the first page of code and 136 free words near
the end of the last page of code (from 177 to 1FE, 377 to 3FE, 577 to 5FE, 777 to 7FE, 977 to 9FE, B77 to
BFE, D77 to DFE, F77 to FFE), depending on the number of E2Flash pages. If an oscillator frequency of
other than 50 MHz (the default) is desired, the source code should contain a FREQ directive (see
Chapter 7.3.9) stating the frequency. When the FREQ directive is missing, the assembler will generate a
warning message, indicating that 50 MHz is used by default.
NOTE: On some machines, it is necessary to close background software (graphics, screen savers, etc.), for proper
operation of the DEBUG windows.
In order to invoke the debugger, select “Debug” from the “Run” menu, press Ctrl-D, or click the debug
shortcut button in the tool bar.
The source code that is currently displayed in the editor window will be assembled, and if no errors
were found, the program is automatically transferred into the program memory of the SX device.
If the transfer was successful, and if an IRC Calibration setting of 4 MHz was chosen, a small window
with IRC information is displayed. You may ignore this information for now, and click “Okay” to close
the window (see Chapter 15.6.1.3 – Internal RC Mode for details on IRC calibration).
Next, the debugger will start, and the windows will be displayed as shown in Figure 11 – The
Debugger Windows.
5.1 The Debugger Windows
5.1.1 The Registers Window
This window contains all the data and describes the current state of the SX chip. The leftmost column
within the Registers window displays the hexadecimal contents of global registers $00 through $0F.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 31