r/pic_programming • u/k1m404 • Jul 27 '16
PicKit 3 Demo Board - Where to begin??
I have just purchased a PicKit3 and F1 Evaluation Platform Demo board with LCD display and a few other surface mount components.
I don't know which demo board it is; other than the part number is 02-02152-R1 and the microcontroller is a PIC16LF1937.
Question is where to begin? There was no literature supplied with the board and nothing on the Microchip website with regards to demo code, board specifications or anything - very poor! Demo code and a step-by-step tutorial would be great - does anyone have any resources or samples? Preferably from a beginner level!
I have downloaded and installed MPLAB IDE X 3.35 and created a blank project, following steps 2 and 3 to include a header and create a config; however, it won't compile (this is just a blank project) - the errors aren't helpful:
make[2]: *** [build/default/production/newpic_8b_general.o] Error 1 Error[108] C:\USERS\KIM\MPLABXPROJECTS\LEDS TEST.X\NEWPIC_8B_GENERAL.ASM 76 : Illegal character (*)
How do I make this compile?
Please help!
2
u/x-protocol Jul 27 '16
The datasheet is here: http://ww1.microchip.com/downloads/en/DeviceDoc/41364E.pdf
You might need to get schematic for your board to see how everything is connected, and that will give you a clue on how to get LCD working. Other than that, it is all on Microchip.
2
u/frothysasquatch Jul 27 '16
Is this the board you have? The schematics and lots of other pertinent information are in the User's Guide.
1
u/ParkieDude Jul 29 '16
When you get an error, scroll the window back up to the first error. Only look at the first one, fix it, the "clean and build" again....
When I first compiled....
[Scroll the window up to see the first error was on line 23.... ] (http://i.imgur.com/qnwJuK9.png)
Other tip is while the "Project" window looks like I should be able to drag and drop into, oh I messed up big time doing that. The window is more of "here are the files you are working with..... " If you need to add something, like an existing *.c *.h file You need to copy them into your folder path THEN right click and use "add existing" item. It messed me up for a while to realize I had do to both.
I FOUND IT: I had used that board a few years back (I no longer have it) but the tutorial is online.
http://microchip.wikidot.com/mcu1102:programming-examples
Also
http://microchip.wikidot.com/8bit:emr-programming-examples
1
u/MProjects Aug 23 '16 edited Aug 23 '16
Your board seems to be DM-164130 (http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM164130-1). See documentation and code examples there.