| Downloading | ||
| Links Mentioned Hyperterminal Downloader |
![]() The compile in the last step created a file called tutor.hex. This is the binary data you need to send to the PIC. Most programmers can accept hex files. The APP-II directly handles hex files. First, I'm assuming you've built and tested the APP-II as described in the manual. Then you can use Hyperterminal to download your program. You might want to get the latest version of Hyperterminal -- which is free for personal use and more up to date than the one that ships with Windows. You can also use practically any terminal program you like. In fact, if you want to use something simpler, you can download a simple Windows console program downloader to use instead of Hyperterminal. Simply run the downloader (app2dump) and put the hex file name and the COM port number on the command line. So to download test.hex using COM 3, you'd enter: app2dump test.hex 3 However, the rest of this tutorial will assume you are using Hyperterminal. Again, you can use practically any terminal program with any operating system. When you open Hyperterminal, you'll see a screen like this:
You can enter any name you like. I'll use APP2. The next screen is important:
Select the Connect using box and pick the COM port you want to use. I'm using COM4:
Now you can select the serial port parameters:
These settings are very important. You must use hardware handshaking and 19200 baud. Click OK. Next, select File | Properties. Click the Settings tab. Set this dialog to look like this:
Then press ASCII setup. You should see this box and check and uncheck the boxes as needed:
Press OK twice. Now you are ready to go. Press File | Save so you won't have to do those steps again. Next time, you can select APP2 (or whatever you've named it) from the list of Hyperterminal connections. Make sure the jumper cap on the APP-II is removed. Press the APP-II reset button. You may see some garbage on Hyperterminal's screen, but the last character should be a > character. Now use the Transfer | Send Text File menu command. Select the tutor.hex file and click OK. The end result should look something like this:
Notice the last character is an exclamation point. This indicates that the program loaded successfully. If you see a question mark, there was an error. Either the set up is not correct, the APP-II is not programming, or you are overrunning the top of the APP-II's program space. Assuming it worked, you should replace the jumper cap on the APP-II and press reset. An LED on Port B pin 0 will appear to be on all the time because the delay is so short. A scope or logic probe, however, will show it is pulsing.
|