
- UK -
p. 7
USB PIC PROGRAMMER AND TUTOR BOARD
Here are the steps to make the board to work as “Proximity_Detector”.
Here are the steps to make the board to work as “Proximity_Detector”.
• In the PICkit 2 Programmer’s menu select File -> Import Hex.
• Then locate the “C” folder in the downloaded software package.
• There locate the fi le Proximity_Detector.X.production.hex in the subfolder \
Proximity_Detector.X\dist\default\production and click Open button.
• Then click the Write button to program the device. The white LED should
now start fl ashing.
• If you now put a refl ecting object near the LED then a buzzer ‘beep’ is
generated.
• The beep pitch is proportional to the refl ection (distance of object).
Edit and compile the source code of the demos
Edit and compile the source code of the demos
• To edit and compile the ASM code examples you have to download and install MPLAB® X or MPLAB® IDE.
• To edit the and compile the C code examples you have to download and install MPLAB® X and XC8 compiler.
• You’ll fi nd them at http://www.microchip.com. Click on Design Support / Development Tools.
• MPLAB X requires Java to be installed in order to run.
• You can use this link to download Java for your computer: http://www.java.com/en/download/index.jsp
Important: When compiling the ASM demo projects in MPLAB® X, please use the menu option or button “Clean and Build Project” when fi rs
t time
compiling the code. If not done, you’ll get an error message.
The ASM demos written in MPLAB® X are in the subfolder ASM_X and the demos written in MPLAB® IDE are in the subfolder ASM_MPLAB.
Commenti su questo manuale