Page 163 - PDA Robotics Using Your Personal Digital Assistant to Control Your Robot
P. 163

PDA 07  5/27/03  8:44 AM  Page 139
                                          Chapter 7 / Programming the PIC16F876 Microcontroller
                                 press the files, first create a directory on your hard drive called EPIC,
                                 or another name of your choosing by typing:
                                 c:\
                                 md epic
                                 at the DOS prompt.
                                 Change to this directory:

                                 cd epic
                                 Assuming the distribution diskette is in drive a:, uncompress the files
                                 into the EPIC subdirectory:

                                 a:\epic2xx -d
                                 where epic2xx is the name of the self-extracting file on the diskette.
                                 Don’t forget the -d option on the end of the command. This ensures
                                 that the proper subdirectories within EPIC are created. Alternatively,
                                 INSTALL.BAT can be run to perform similar steps. If the EPIC direc-
                                 tory already exists, you will get an error message and the installation
                                 will continue.


                                 Hardware Installation

                                 Make  sure  there  are  no  PICmicro  MCUs  installed  in  the  EPIC  pro-
                                 gramming socket or any connected adapter’s socket until the program-
                                 ming software is executed and the light-emitting diode (LED) is off.
                                 Also, be sure that the EPIC Plus Programmer is placed on an insulat-
                                 ed surface to prevent the shorting out of traces on the bottom.
                                 Connect the EPIC Plus Programmer to a PC compatible parallel printer
                                 port using a 25-pin male to 25-pin female printer extension cable. The
                                 EPIC Plus Programmer uses pins 2–6, 10, and 19–25. A serial cable may
                                 not have all of the necessary connections, so be sure to use a printer exten-
                                 sion cable. A suitable cable is available from Micro-Engineering Labs.

                                 Make  sure  the  programmer  is  connected  to  a  parallel  printer  port.
                                 Connection to a serial port or SCSI port that has similar connectors
                                 may result in damage to the port or to the programmer. If you are pow-
                                 ering the EPIC Plus Programmer with the optional AC adapter, plug it
                                 into the power connector on the programmer and then into a wall out-
                                 let. The AC adapter should provide approximately 16VDC at 500ma.

                                                                                               139
   158   159   160   161   162   163   164   165   166   167   168