UPLOADING AN INTEL HEX FILE TO THE PRIMER IN EMOS 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 that 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. 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. Reset the PRIMER and press its "Func." and "0" keys to invoke EMOS. You should see the following on the HYPERTERMINAL display: ------------------------------------------------------------------------------ E-FORTH V1.10 SBC+ Copyright 1987-91 EMAC inc. License no. 00. EMOS V2.00 HELP MENU B --> Bring Block from RAMDISK to memory C --> Change register contents D --> Dump memory contents E --> Edit memory contents F --> Fill memory with byte G --> Go execute program { full speed } H --> Hex/dec math { 1st + 2nd, 1st - 2nd } I --> Input from I/O port L --> List memory contents using mnemonics M --> Move section of memory O --> Output to I/O port R --> display Register contents S --> MOS Service call T --> Trace program execution W --> Write memory to RAMDISK block Z --> Zap application EPROM < --> hex download from trainer to host > --> hex upload to trainer from host ? --> display this help menu - ------------------------------------------------------------------------------- At this point type ">" to upload to the trainer and you will see the following prompt: ------------------------------- - > STARTING ADDRESS.. ------------------------------- Type "FF01" for this example and you will see the following: --------------------------------------- - > STARTING ADDRESS.. FF01 READY TO RECEIVE, TO ABORT --------------------------------------- Now you can start downloading 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 in the same directory of the distribution disk as the HYPERTERMINAL configuration file. The transfer will happen without any feedback until it is finished. This file will take about 2 seconds to upload then the "-" prompt will reappear. Type "G" for "GO" to execute the program and the following will appear: -------------------------- - G STARTING ADDRESS.. -------------------------- Enter "FF01" for the starting address and when it prompts you for a breakpoint, just press enter (for no breakpoint) and you will see the following before the program starts: ------------------------------------------------------ - G STARTING ADDRESS.. FF01 BREAKPOINT ADDRESS.. RUNNING.. HIT ANY KEY TO STOP ------------------------------------------------------ Then 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. The program exits when you move the DIP switches so that they read "0000". Upon exit, the prompt will return and the terminal will display something similar to the following. ------------------------------------------------------------------------- THE DIPSWITCH NOW READS 0000 SZxAxPxC A B C D E H L TS SP PC OPCODE MNEMONIC 01000100 00 01 03 00 0D 00 00 0000 FFD4 FF42 FF RST 7 - -------------------------------------------------------------------------