|
1. Use the MPASM assmbler to assemble the program, the assembler will create, a "hex" file as it's output. "Here is a local copy of MPASM (2.6Meg)." In the example, this file will be called "test1b.hex". The masm assembler reads in your assembly program "test2b.asm" and then assembles it into the hex file "test1b.hex". Take a look at the screen shot of the MASP assembler, ready to assemble:
After you have the program assembled into a hex file, you need to get the file onto your board. For this we will need the "PDFSUSB" program. Navigate to C://MCHPFSUSB/Pc/Pdfsusb\PDFSUSB.exe, right-click your mouse as you drag it onto the desk-top, create a short-cut, to make it easier to use it in the future. Connect your robot, by way of the USB cable, to your computer. If it doesn't detect the robot's USB device, make sure your robot's power is turned on (blinking light) hold-down the [pgm] button and press the [reset] button. Now double-click on the icon and load your hex file as shown below:
Finally, program the robot as shown below:
|