int e l 3.4 DESCRIPTION OF EPROM FILE COMMANDS COMMANDS: PROG1(cr) and PROG2(cr) ACTION TAKEN: PROG1 Normally, after power is applied to the MCS BASIC-52 device, the user MUST type a "space" character to initialize the 8052AH's serial port. As a convenience, MCS BASIC-52 contains a PROG1 COMMAND. What this command does is program the resident EPROM with the BAUD RATE information. So, the next time the MCS BASIC-52 device is "powered up," i.e. RESET, the chip will read this information and initialize the serial port with the stored baud rate. The "sign-on" message will be sent to the console immediately after the MCS BASIC-52 device completes its reset sequence.
The "space" character no longer needs to be typed. Of course, if the BAUD rate on the console device is changed a new EPROM must be programmed to make MCS BASIC-52 compatible with the new console. PROG2 The PROG2 command does everything the PROG1 command does, but instead of "signing-on" and entering the COMMAND MODE, the MCS BASIC-52 device immediately begins executing the first program stored in the resident EPROM. THIS IS AN IMPORTANT FEATURE !! By using the PROG2 command it is possible to RUN a program from a RESET condition and NEVER connect the MCS BASIC-52 chip to a console. In essence, saving PROG2 information is equivalent to typing a ROM 1, RUN command sequence.
This is ideal for control applications, where it is not always possible to have a terminal present. In addition. this feature permits the user to write a special initialization sequence in BASIC or ASSEMBLY LANGUAGE and generate a custom "sign-on" message for specific applications. - 24 -