Chapter 4. User Interface

Table of Contents
Menu Bar
Tool Bar
Status Bar
Main View
Watch Area
Console Area

This screen shot illustrates the main components of the user interface.

Menu Bar

The NiceMon menu bar provides the user with access to NiceMon's user interface controls. Here is a description of each menu:

File

The File menu contains these items.

  • Open: will load a program to be debugged (COFF or Intel HEX object file). Selecting this menu item will open a dialog box prompting the user for a file name. The COP8 Flash is programmed with the application code and the NiceMon debug stub.

  • Run Scheme Script: will run a Scheme script. Selecting this menu item will open a dialog box prompting the user for a file name. Typically scripts are used to set preferred settings and to automate command sequences.

  • Exit: will exit NiceMon.

ISP

The ISP menu contains these items.

  • Program Flash: will program the device without debugging. Selecting this menu item will open a dialog box prompting the user for a file name (COFF or Intel HEX object file). If the OPTION register is not defined by the object file it is set to the value specified by the OPTION value menu item.

  • Verify Program Flash: will verify that an object file is properly programmed. Selecting this menu item will open a dialog box prompting the user for a file name (COFF or Intel HEX object file). The results of the verify are displayed in the console area.

  • Default Option Value: used to specify the OPTION value to be used if no value is specified by the object file. This value is only used when a device is programmed (it is not used when debugging). The default default value is 0x07 (watchdog/security disabled and FLEX set).

Debug

The Debug menu contains these items.

  • Reset: will issue a soft reset and stop at the reset vector.

  • Stop: will stop a running program.

  • Run: will continue execution at the current program counter.

  • Step: will run and stop after one assembly instruction is executed.

Watch

The Watch menu contains these items.

  • Watch: will add a watch to the watch area. If debug symbols are loaded NiceMon will prompt the user to select a variable to watch. If debug symbols are not loaded NiceMon will prompt the user for a name and address. NiceMon will then prompt the user for the number of bytes to be watched.

  • Clear: will remove all watch variables from the watch area.

  • Dump Flash: will dump 0x50 bytes of flash. The starting address is at the program counter.

  • Disassemble: will disassemble five assembly instructions. The starting address is at the program counter.

Configure

The Configure menu contains these items.

  • Clock Frequency: used to specify the operating frequency of the target microcontroller. This value is used to calculate the flash programming times and the ISP programming delays.

  • Flash Size: used to specify the flash size of the target microcontroller.

  • Flash Page Size: used to specify the flash page size of the target microcontroller.

  • Ram Pages: used to specify the number of RAM pages on the target microcontroller.

  • Pin Delay: used to specify the delay between parallel port pin transitions. Usually a delay is not required here so it can be left at the default 0ns.

  • Parallel Port: used to select the PC parallel port that is connected to the target.

Here is the default configuration:

clock frequency10Mhz
flash size32kB (0x8000)
flash page size128B (0x80)
RAM pages8
pin delay0ns
parallel port0x0378 (LPT1)

Help

The Help menu contains these items.

  • User Manual: will open a web browser with the NiceMon documentation.

  • Project Web Page: will open a web browser with the NiceMon Web Page.

  • ReadMe file: will open the ReadMe text file.

  • About: will open a dialog box with NiceMon version number, credits and technical support contacts.