UPLOADING AN INTEL HEX FILE TO THE PRIMER IN MOS USING HYPERTERMINAL(tm) FROM WINDOWS(tm) HYPERTERMINAL is an application within Windows(tm) which allows you to communicate with serial devices. When a character is received by the PC serial port which is being used by HYPERTERMINAL, the character will be displayed in the application window and when a key is pressed at the keyboard the corresponding character will be sent out the serial port. If your Primer has been configured with the deluxe or standard upgrade, you can send Intel hex files from your PC to the Primer via a serial RS-232 cable link between them. The following instructions are for Primers with the standard MOS 2.5 or greater (the instructions do not apply to Primers with EMOS installed, there is another document for using HYPERTERMINAL with EMOS). Copy the appropriate HYPERTERMINAL configuration file from the distribution disk ("PRIMER_95-98.HT" for Win95/98 or "PRIMER_XP-2K-NT.HT" for Win XP, 2000 or NT) to your Windows desktop then double click on that icon from the desktop. If HYPTERTERMINAL asks you if you want to install a modem, click "no". Set up the PRIMER for 9600 baud with the following jumper settings: JP1 = 9600 OJ1 = Jumper 1-2 and 3-4 OJ2 = Jumper B OJ3 = Jumper B The configuration files default to using COM1 as the serial port. If COM1 is available on your PC and is not being used for another device such as a mouse, skip the next paragraph. If COM1 is already being used on your PC, you need to press the disconnect button (at the top left of the terminal window, shown as a phone with the handset raised above the phone). Select FILE-PROPERTIES then on the window that pops up, there is a CONNECT TO tab. If this tab is in the foreground, you will see a selection window called CONNECT USING. Use this to select a COM port that is not being used on your PC and press the OK button. Now press the CALL button (next to the disconnect button) to establish the connection. Select FILE-SAVE to save the current configuration. Using the serial cable (which is included only with a Primer that has the deluxe or standard upgrade), connect the PRIMER serial port to the COM port that HYPERTERMINAL is configured for. Refer to "To begin diagnosis:" on page 17 of the Primer Self-Instruction Manual for instructions for testing the UART. This will allow you to determine if your PC and cable connections are properly configured. In this case HYPERTERMINAL is the "terminal" being referred to in the instructions. When the HYPERTERMINAL application is the active window on your desktop, any character typed on your PC keyboard will be sent out from the PC serial port and received by the Primer's serial port. Likewise Any character sent out of the Primer's serial port will be received by the PC serial port and displayed on the HYPERTERMINAL window. Pressing "Func." then "3" will then enable the PRIMER's serial port to receive a hex file. After this, the displays will show "rEC.." indicating that the PRIMER is ready to receive the data. After an ending record is received, (a record in which the fourth pair of digits following the colon is 01, and which is typically at the end of every Intel hex file), the PRIMER will return to entry mode. If any errors occur while receiving the hex file "Err.." will be displayed followed by a hex number. The bits in this number, after it is converted to binary indicate the following errors: BIT# ERROR 0 (not used) 1 checksum error 2 non-hex character encountered 3 escape character encountered 4-7 (not used) Pressing a key after the error message will put the PRIMER back into entry mode. Receiving a hex file may be aborted any time by resetting the PRIMER or by pressing the ESC key on your PC. Sending an escape character will result in an "Err..08". Now to send a hex file to the Primer, press the Primer's reset button then press "Func." then "3" and the LED displays will show "rEC..". Now you can start sending your Intel hex file by selecting the HYPERTERMINAL "Transfer" option and the "Send Text File" sub-option. This will bring up a file browser in which you should change the "Files of Type" option to "All files(*.*)" and select the file TRAINTST.hex which is a pre-assembled hex file that is in the same subdirectory of the distribution disk as the assembler. After the file is sent, the display will show "FFO1 06" which is the first address and the first data byte in the program. This program displays on the terminal screen the hex value of the data read from the DIP switches and the program stops when the DIP switches read 00 hex so make sure at least one of the switches is in the ON position before starting the program. Pressing "Func." then "STP/RUN" will start the program and something similar to the following will be displayed on the terminal: THE DIPSWITCH NOW READS 0087 The number displayed will differ based upon what position your DIP switches are in.