Page 1 of 2
pickit 2
Posted: Tue May 10, 2011 4:32 pm
by Fluroblue
hay guys ive just set up my pickit 2 stuff and im doing the tutorials that brad has on his website. ive clicked project (in mplab) the project wizard
and im up to the bit where you select your language toolsuite. all the options have a red X next to them and i cant continue. what do i do now??
Re: pickit 2
Posted: Tue May 10, 2011 5:09 pm
by Fluroblue
its fine the files that i needed where hidden so i just had to search for them :S
Re: pickit 2
Posted: Tue May 10, 2011 5:32 pm
by Fluroblue
its me again :S im doing the led flasher and im clicking quickbuild and it comes up with 'build failed'.
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /pMCV20USB "tutorial_2_led_flasher.asm" /l"tutorial_2_led_flasher.lst" /e"tutorial_2_led_flasher.err"
Warning[215] C:\USERS\SMART\DESKTOP\PICKIT 2\TUTORIAL\TUTORIAL_2_LED_FLASHER.ASM 26 : Processor superseded by command line. Verify processor symbol.
Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F648A.INC 33 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Warning[230] C:\USERS\SMART\DESKTOP\PICKIT 2\TUTORIAL\TUTORIAL_2_LED_FLASHER.ASM 28 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Error[126] C:\USERS\SMART\DESKTOP\PICKIT 2\TUTORIAL\TUTORIAL_2_LED_FLASHER.ASM 28 : Argument out of range (not a valid config register address)
Halting build on first failure as requested.
if someone understands whats wrong plz tall thanks
Re: pickit 2
Posted: Tue May 10, 2011 10:15 pm
by brad
It looks like you have not set it up for your particular microcontroller. Did you follow all of the steps in the tutorial? you need to set it up for a 16f628a microcontroller.
Have a look down the bottom left of screen and make sure it reads 16f628a (or 16f648a) I can't remember which one i sent you.

- screen-capture.png (7.77 KiB) Viewed 31134 times
Re: pickit 2
Posted: Tue May 10, 2011 10:45 pm
by Fluroblue
it was 16f648a im pretty sure i did but when you open the asm file do you just open it in file- open , project - open, or does it not matter?
Re: pickit 2
Posted: Wed May 11, 2011 5:27 am
by bitfogav
Its looks like MPLAB was configured for a PIC 18F by this line:
Code: Select all
Warning[230] C:\USERS\SMART\DESKTOP\PICKIT 2\TUTORIAL\TUTORIAL_2_LED_FLASHER.ASM 28 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Brad is correct you need to set your device.
In MPLAB you usually just click "File > Open" and select the "ASM" file you want to open, you then need to select the correct device in MPLAB in the configure tab, and select the correct microchip you are using? heres a few pictures to show you how to correctly select your device, I hope this helps

- devicemplab1.jpg (25.8 KiB) Viewed 31131 times

- mplabdevice2.jpg (46.93 KiB) Viewed 31131 times
Re: pickit 2
Posted: Wed May 11, 2011 10:04 am
by Fluroblue
thanx a bunch that fixed it
sorry for bothering you guys with it
Re: pickit 2
Posted: Thu May 12, 2011 2:36 am
by bitfogav
No worries, happy to help. glad it fixed it..

Re: pickit 2
Posted: Thu May 12, 2011 9:19 pm
by brad
That's what we're here for!
Re: pickit 2
Posted: Fri May 13, 2011 6:02 pm
by Fluroblue
in the led matrix tutorial i need a 7442 chip, is there anything else in that title? would it be common enough to be in jaycar?
Re: pickit 2
Posted: Fri May 13, 2011 6:48 pm
by bitfogav
Its quite a common chip of the 7400 family, ive searched Jaycar and come up with this for you, this should do fine.
http://www.jaycar.com.au/productView.as ... BCATID=884
Re: pickit 2
Posted: Fri May 13, 2011 7:08 pm
by Fluroblue
thanks will it be exactly the same or are there some things i should look for when using them?
Re: pickit 2
Posted: Fri May 13, 2011 7:10 pm
by bitfogav
Looking at the datasheet the pin configuration is exactly the same

Re: pickit 2
Posted: Sat May 14, 2011 11:32 pm
by Fluroblue
lol sorry for doing this but if i wanted to use it without it being powered by pickit, would i put a 5v battery starting at VDD (+) and the negative being at VSS?
Re: pickit 2
Posted: Sat May 14, 2011 11:49 pm
by odessa
Yes thats correct.
