If you have suggestions for improvements or find any bugs please submit via fax or e-mail with the heading "BUG in 515MON21" fax. 618-457-0110 support@emacinc.com This document supercedes ATBMON.DOC and documents the improvements made to the monitor in version X2.1a. The backspace key can now be used to erase a character. Access to all of the C515C's SFRs is possible now through the addition of the following: ADCON0, ADCON1, ADDATH, ADDATL, CCEN, CCH1, CCH2, CCH3, CCL1, CCL2, CCL3, CRCH, CRCL, DAPR, DIR5, DPSEL, IEN1, IEN2, IP1, IRCON, P2, P4, P5, P6, P7, PCON1, PCON, SBUF, SCF, SCIEN, SRB, SRELH, SRELL, SSCCON, SSCMOD, STB, SYSCON, T2CON, TH0, TH1, TH2, TL0, TL1, TL2, WDTREL, XPAGE The IE and IP SFRs were replaced with IEN0 and IP0 respectively. DBYTE was modified to allow access to internal RAM addresses 80 to FF. The HELP command was added which displays an abbreviated command summary. UPLOAD/DOWNLOAD have been changed so all I/O is through the main serial port. UPLOAD no longer gives the "LOADING" message and no CTRL-Z or RUBOUT are output at the end of the hex file. DOWNLOAD no longer expects or sends a comment. Also, it now grabs the checksum on the end record (though it doesn't check it). SEND has been eliminated. Interrupt vectors for the C515C have been added and are offset to 8000h. 8003H IE0 800BH TF0 8013H IE1 801BH TF1 8023H RI/TI 802BH TF2/EXF2 8043H IADC 804BH IEX2 8053H IEX3 805BH IEX4 8063H IEX5 806BH IEX6 807BH Wake-up 808BH CAN 8093H SSC TC/WCOL 80A3H IEX7 80ABH IEX8 GETTING STARTED The MicroPac 515C memory jumpers must be set up in "PROGRAM/DATA CONFIGURATION". Refer that section of the MicroPac 515C Hardware manual. Connect the main serial (CN1) port to a terminal or terminal emulator with no parity, 8 data and 1 stop bit and a baud rate of 9600. Power-up the board and if everything is connected and configured correctly, the following will appear on the terminal window: MCS-51 MONITOR X2.1a * Once communication has been established you can now type "HELP" and enter, to see an abbreviated command list. Type DOWNLOAD and enter to ready the monitor to receive an Intel hex file. Send the hex file that is on the distribution disk (the file with the ".HEX" extension) to the Micropac 535 using the text transfer (or file upload) function of your terminal emulator. Once initiated, you will see each line of the hex file as it is loading into the board (each hex file line will write over the previous line on the terminal display). When it is done, you will see the "*" prompt. You may now start the program by typing "MGO 8000" and enter. If you want to single-step or set breakpoints, don't execute the init section of the program since this section changes parameters used by the monitor. Instead, start at the section you want to debug. You may want to install a JMP instruction over the init section until your program is debugged.