Keil Logo Arm Logo

INSTALL.BAT

The INSTALL.BAT batch file assembles and links the monitor using configuration parameters you specify on the command line. INSTALL.BAT is invoked from the command prompt using the following command-line syntax:

INSTALL Serial-Type <[>XData-Start <[>Code-Start <[>BANK<]><[>PROMCHECK<]><]><]>

Where

Serial-Type Specifies which serial I/O routine MON51 uses.
XData-Start Specifies the xdata page number for MON51.
Code-Start Specifies the code page number for MON51.
BANK Specifies that MON51 supports code banking.
PROMCHECK Specifies that MON51 should check for ROM at code address 0000h.

Serial-Type

Serial-Type is a number which selects the serial port and baudrate used by MON51. You may modify the serial port configurations in the INSTALL.A51 file or you may create additional configurations to suit your requirements.

The following table lists the standard configurations that are pre-configured in INSTALL.A51.

Serial
Type
Serial
Interface
Clock
Source
Baud Rate CPU Clock
(MHz)
Processors
0 0 Timer 1 9600 11.0592 All 8051 Variants
1 0 Internal Baudrate Generator 9600 12.000 Infineon 80515(A), 80517(A)
2 0 Timer 2 9600 12.000 8052-Compatible
3 1 Internal Baudrate Generator 9600 12.000 Infineon 80517(A)
4 0 Timer 2 9600 12.000 Dallas 320, 520, 530
5 1 Timer 2 9600 12.000 Dallas 320, 520, 530
6 External 16450 or 16550 UART External 3.6864 MHz Xtal 9600   All
7 0 Timer 1 Self-Adjusting   All
8 0 Timer 2 Self-Adjusting   8052-Compatible
9 0 Internal Baudrate Generator Self-Adjusting   Infineon 80515A, 80517(A), C505C, C515C
10 1 Internal Baudrate Generator Self-Adjusting   Infineon 80517(A)
11 0 Timer 2 Self-Adjusting   Dallas 320, 520, 530
12 1 Timer 2 Self-Adjusting   Dallas 320, 520, 530

XData-Start

XData-Start specifies the page number in xdata memory that MON51 uses for its variables. Valid values are 00-FF (for 0000h, 0100h, 0200h, ..., 0FF00h). The page MUST be von Neumann memory that can be accessed from both code and xdata space. The page specified may not be used by your target program.

Code-Start

Code-Start specifies the page number in code memory where the MON51 program starts. Valid values are 00-F0 (for 0000h, 0100h, 0200h, ..., 0F000h). The default value is 00. MON51 typically requires 4K-5K Bytes.

BANK

The BANK option adds code banking support to MON51. If you use this option, you must configure the code banking routines in MON_BANK.A51.

PROMCHECK

The PROMCHECK option instructs MON51 to check if RAM or ROM is present at code address 0000h after a reset. If ROM is present, MON51 jumps to address 0000h in code memory.

If you locate the monitor at address 0000h (in a ROM device) you should not enable the PROMCHECK option (MON51 will loop endlessly jumping to itself).

Example

The following command line:

install 8 7F 00

creates MON51 with the following configuration:

  • Self-adjusting baudrate using serial interface 0, timer 2 of 8052-compatible devices.
  • MON51 XData space at 7F00h-7FFFh.
  • MON51 starting at code address 0000h.

The MON51.HEX file that is built by INSTALL.BAT may be burned into EPROM or otherwise downloaded into your target system.

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.