IMPORTANT: There is a mistake at 6:21 for the PIC16F1455. The correct PGD/ICPSDAT connection is at pin 10, and the correct PGC/ICSPCLK connection is at pin 9. Pins 12 and 13 are the wrong connection, sorry for the confusion!
@FriendlyWire2 жыл бұрын
@Planet of the Idiots Happy to, but an update on what?
@FriendlyWire2 жыл бұрын
@Planet of the Idiots Yeah, but for what controller? And what kind of lines? If you have lots of complicated operations it will be very few lines, and if it's basic stuff it can be a lot of them. But the best part: you can actually download the XC8 compiler and the MPLAB IDE and give it a try yourself, for the controller and code you have in mind :)
@palmering88 Жыл бұрын
I just programmed my PIC18F4550 after 10 years of not touching it. This channel and the website was a lot of help. Very straightforward, very helpful. Thank you.
@FriendlyWire Жыл бұрын
That's amazing, congratulations, and thank you for your kind words!
@Vamptech36010 ай бұрын
Hlw I've something to ask
@thanatosor3 ай бұрын
So your PIC survived 10 years in the closet ? that's impressive.
@ChikiChpoki Жыл бұрын
It is impossible not to note the quality and detailed сompanion articles on the website. It really sets you apart from the similar content makers. Thank you for your work!
@FriendlyWire Жыл бұрын
Wow, thank you so much! :)
@billebrill87302 жыл бұрын
Great to see a channel using the PIC. I am a big PIC fan but with the vast array of devices and constant upgrades to the software it can get intimidating for the beginner. Thanks.
@FriendlyWire2 жыл бұрын
Hey Bill, glad you like the video! Yes, there are so so many PICs out there, which is why I focus on just a few of them in my videos :)
@billebrill87302 жыл бұрын
@@FriendlyWire I jumped from the 16F887 to the 18F26K20 mostly because I wanted 3.3V. So much functionality I have yet to master! But most of the code can easily be ported. Thanks again.
@FriendlyWire2 жыл бұрын
@@billebrill8730 Yes, there is a lot of PIC controllers out there, and it can be very overwhelming to begin with. Instead of overthinking I always recommend to just start somewhere in order to form a solid basic understanding, and then branch out from there :) My first controller was the PIC16F627A :)
@kingkappa9916 Жыл бұрын
Hi - Thanks for your video. With the power supply error at 10:00 minutes into your video, change the power setting to 4.75V and you can proceed past this self test ok. No external supply needed. 😁
@FriendlyWire Жыл бұрын
Oh yeah, good idea! It may work sometimes, but usually when the voltage breaks down it means that the PICkit3 cannot supply enough current (and there may be a reason for that, such as a large number of external components). Glad it worked in your case! :)
@ajalprofs8746 Жыл бұрын
THANKS, for my case I use the pickit2 software and that the pic 18f8680 is soldered on the electronic card and I have a 5 pin connector on the card for programming. THANKS @FriendlyWire
@FriendlyWire Жыл бұрын
Sorry for my late reply! I am not sure what went wrong... It could be a lot of things: wiring, unstable power supply, a bug in the code itself perhaps, a loose connection somewhere, or a USB port that cannot supply enough power. We would have to narrow it down some more. Did your setup work in the past, and not stopped working? Or is this the first time you are setting things up? (You can also get clones of the PICkit3 online, they are not so expensive as the newer PICkit4, and they work great.)
@tdranger6888 Жыл бұрын
Great tutorial, very understandable. I'm a greenhorn. I've been struggling with MCU orientation for weeks. Now I get it, all in one video.
@FriendlyWire Жыл бұрын
Thank you so much, I am glad you find this video helpful! :)
@DomenSoster Жыл бұрын
Hello. I am using Pickit3 for programing my PIC18F45K42. I have a problem with LED blinking. In code i set the while loop to bling the diode 5 times, but it keeps blinking forever. Does it something has to do with configuration bits of PIC18F45K42 or is something wrong with connections and my microchip maybe is resetting nonstop ?
@FriendlyWire Жыл бұрын
It's probably because everything is enclosed in a loop like this: while(1) { // your LED stuff } Can you share your code?
@fedeyoutub Жыл бұрын
Hi, thanks for your video, it made me understand many things.. I have a .bin file of a USB module, is a motherboard gamepad, the board has a PIC18 chip etc.. I have the manufacturer's firmware file , I would like to be able to open it to modify it, how can I do it ?
@FriendlyWire Жыл бұрын
Hey there, I am glad you found my video helpful! I am not sure how do to what you have in mind, I am sorry. Most likely the manufacturer has code protection enabled. But even if you can get access to the code, it will not be in C, but machine code, which is much harder to read for us humans. Do you have experience in hardware?
@fedeyoutub Жыл бұрын
@@FriendlyWire Thanks for the answer, yes, I have experience, but when I open the binary I find: 5!`¤*4$ óÖX›Ñ ‹ìxœï› Ó>к½p, :-(... I just can't figure out what language this is. i tried all possible converters to extrapolate to C or other, but nothing,. , this file is loaded on the electronic card via USB, using a software: HIFlash.. :-(
@FriendlyWire Жыл бұрын
@@fedeyoutub Try opening this with a hex editor instead, it may be more suitable. But it's probably just machine code for your device, so it will be difficult to convert it back.
@MrJansen-nd7ld Жыл бұрын
can we use eeprom sst27sf512 to program with pickit 3 ?
@FriendlyWire Жыл бұрын
Are you asking whether we can transfer data on EEPROMs using the PICkit3? I don't think this works, sorry.
@ajalprofs8746 Жыл бұрын
could you explain to me why when I read the source code of the 18f8680 microcontroller and I write it a second time on the same pic the program does not work knowing that I use the pickit2 Thanks a lot
@FriendlyWire Жыл бұрын
It's a good question, and things like this can be very frustrating, I have been there. I tried to find out of the MPLAB IPE supports the PICkit2, but I could not find it either on the official website or in the manual. I assume that it shows up in the IPE under "tool"?
@ajalprofs8746 Жыл бұрын
THANKS, for my case I use the pickit2 software and that the pic 18f8680 is soldered on the electronic card and I have a 5 pin connector on the card for programming. THANKS@@FriendlyWire
@donnlai Жыл бұрын
Hi, kindly advice the followings. I fit capacitors on the rails RA7 and RA6 with a quartz oscillator, it lights up the LED on RB3. What if I change the nF value of capacitor? what if I put a polarity capacitor instead? Thx.
@FriendlyWire10 ай бұрын
My goodness, I just saw this comment from 2 months ago. Sorry to be so late to the party, and thank you @advanceinkscape8494 for your perfect answer. Also, besides what was already said, usually you need to check the datasheet of your crystal and it will tell you what its "load capacitance" is. Say it's 10pF. Then, if you ignore stray capacitance, you can usually take each capacitor to be twice that value, so: 20pF each, or, as was pointed out above, 22pF would also do the trick. Also, a lot of PICs allow you to use an internal oscillator, in which case you don't need an external crystal and capacitors at all.
@mohandmohand2047 Жыл бұрын
How about 12c508/p 04 HAM modchip???? I need digram point for it GND VDD all 8 pin i have k150 programmer and it give error recived data about reset play...
@FriendlyWire Жыл бұрын
Looks to me that VDD is pin 1, GND is pin 8, MCLR is pin 4, PGD is pin 7, and PGC is pin 6. Check out table 3-1 in here: ww1.microchip.com/downloads/en/DeviceDoc/40139e.pdf Hope it helps!
@djt39347 ай бұрын
hello i have an issue, i am following this project exactly as the video shows, but instead of a 16f627 im using a 628. which from what ive seen online are basically the same. my issue is that the led is turning on, however it is not flashing.
@FriendlyWire7 ай бұрын
Thanks for your interest and for your question! When you set up the project etc. did you select the PIC16F28A as a device?
@djt39347 ай бұрын
@@FriendlyWire yes i selected PIC16F628, maybe this issue is something to do with the internal clock?
@FriendlyWire7 ай бұрын
@@djt3934 Yes, it could be that. Can you send me your code to my email (at the bottom of www.friendlywire.com) and I will have a look at it :)
@koroshjavan7119Ай бұрын
hello Thanks for your helpful tutorial. I want to copy a 44-pin pic16f1937 with the same program and write it on the raw IC. Please advise the program pins and the voltage value. Thanks ❤
@FriendlyWire25 күн бұрын
In the datasheet (ww1.microchip.com/downloads/en/DeviceDoc/41364B.pdf) it looks like VDD is pin 20, GND is pins 8 and 19, MCLR is pin 1, PGD is pin 28, and PGC is pin 27. Operating voltage is 1.8V-5.5V. Good luck!
@naushadc.k.885110 ай бұрын
Is it possible to get the hex code from pic ic where it was flashed earlier.
@FriendlyWire10 ай бұрын
Yes, if the code protection bit is turned off by whoever flashed the PIC, it's possible. Just connect it as shown in the video until 8:17, but then click on "Read" and the PICkit will attempt to read out the PIC's memory and retrieve the .hex-file, if possible. Hope it helps!
@oveschleisner-meyer8139 Жыл бұрын
Hello. I have seen this video a lot of times and I have made the same "Blinking" program as you and it works OK... BUT when I place the PIC16F627A in my Breadboard and turn on 5 Volt it seems very unstable. The diode is blinking one seequence and the stops but if I touch the PIC chip it turns ON and sometimes the diode just goes ON and stops again and other times the seequence is running. It seems that the chop is sensitive for my fingers... The PIC chip is only connectet to pin 5 for GND pin 14 is +5V and pin 9 RB3. Should I connect all the unused pins to ground or what could I do to make the system more stable??
@FriendlyWire Жыл бұрын
Thanks for your question, and I am glad it's mostly working already! Have you tried adding a 100uF capacitor and a 100nF capacitor in parallel to the battery? This should help stabilize things.
@oveschleisner-meyer8139 Жыл бұрын
@@FriendlyWire Thanks a lot... that solved my problem...Fantastic. I will go on learning programming PIC's. Are you still making video clip of programming PIC's?
@FriendlyWire Жыл бұрын
@@oveschleisner-meyer8139 Fantastic indeed, congratulations! Yes, I am still making videos, but it takes me some time to get them finished. Check out my Twitter @FriendlyWire where I post updates on the new projects :)
@mikemeyer3012 жыл бұрын
Mine didn't work initially, even after trying everything you said. It finally worked after placing a resister between the VDD and MCLR, which from my understanding, was not required (newb trying to read datasheet) : using PIC52313
@FriendlyWire2 жыл бұрын
Thank you for sharing, Mike, and I am so sorry that it didn't work for you. (Sorry that I am replying so late, I only now saw your comment.) MCLR does not require any resistor to VDD with ordinary PICs when programmed with the PICkit3. I am having some trouble finding this controller, the PIC52313. Usually the names start with PIC16F or PIC12F, but this one is different. Can you double check the name? I would love to figure out why it didn't work out properly.
@mishealunegbu1766 Жыл бұрын
pls how do I overcome hold in reset enabled or release hold in reset enabled
@FriendlyWire Жыл бұрын
Thanks for the question! Can you share more details? You can also contact me on social media @FriendlyWire if you want to send a screenshot. Happy to help!
@gregwx3 ай бұрын
Such a great video thank you very much. Question, if the PC is solder to a PCB is there a way to bridge it to reprogramed/flash or this might get issues?.
@FriendlyWire3 ай бұрын
Thank you, I am glad you found the video helpful! To answer your question: it depends, unfortunately, one what is connected to the controller. If you have a PCB, check if there is a "programming interface" connector or something like that. A lot of production PCBs are designed such that the PIC can be flashed after being soldered, for convenience. If such a pinheader exists, it should be OK to flash it. Hope it helps!
@Hhtfvhrcbgrejkkjhffvbhb2 жыл бұрын
How to program read in ic and save file for copy other ic .
@FriendlyWire Жыл бұрын
Follow the steps after 7:00. Connect to your PIC, and then click on "read." Then click on File -> Save As, and you can save the .hex code onto your computer. If "code protection" has been enabled, then it won't be possible to extract the .hex-code like this, however. Hope it helps!
@vinilg110 ай бұрын
Excellent explination.
@FriendlyWire10 ай бұрын
Thank you, glad you like the video!
@Hhtfvhrcbgrejkkjhffvbhb Жыл бұрын
Sir , mpli ixe in advance settings which password use?? Microchip ic read and save which software best for pickit3.5?
@FriendlyWire Жыл бұрын
I think the default password is "microchip" in the advanced settings, it should say somewhere in the window. I think the MPLAB IPE works with the PICkit 3.5, have you tried it?
@Electrolab28Ag2 жыл бұрын
Really clear and understandable, A couple question... 1. If you have more than one VDD and VSS, do you have to connect power and GND to all points? 2. If I just want to read the data from one Chip and send the Hex file to another Chip. How can I do that?
@FriendlyWire2 жыл бұрын
Thank you for your kind words! 1. In our case here, all circuits run on one VDD (typically 3V-5V) and there is only one ground potential. All chips are connected to VDD and to ground. If you connect the PICkit3 to such a circuit, then you have to connect the VDD pin of the PICkit3 to the VDD of your circuit (and hence to the VDD of all chips), and to the ground level. In general, you always have to make sure that the PICkit3 is connected to the VDD and ground of the controller you want to program. If your circuit has multiple voltages (say, there is also a 9V rail, and so on) the you have to be careful not to destroy the PICkit3, as it can only tolerate up to 5V. 2. Yeah, you can do that, provided that the chip does not have code protection enabled. Follow the steps in the video, and at 7:30, when you connect the controller, you see the option "Read" (in the same row as the "Program" button). If you click that button, you will be able to read out the current .hex-file that the microcontroller uses. The IPE will then ask you where to store that .hex-file, and then you can use that .hex-file and send it to other controllers, too. Hope that helps, let me know if you have more questions, and thank you again for your interest! :)
@Electrolab28Ag2 жыл бұрын
@@FriendlyWire Thank you for your prompt response. I did as you suggested but when I press the Read tab in the IPE it just say read successful and does not ask me to save it anywhere. I am using PicKit 4. I also enable the Pickit to supply the 5 volts. Any ideas? The Chip that I am using is a PIC16F877-20I/P
@FriendlyWire2 жыл бұрын
@@Electrolab28Ag Oops, my bad. I think after the read you have to click on File -> Export and save it this way. Does it work for you? :)
@Electrolab28Ag2 жыл бұрын
@@FriendlyWire I am out of the workshop today, buy once I get back and I'll try iy and let you know.
@FriendlyWire2 жыл бұрын
@@Electrolab28Ag Yeah, let me know if it works!
@sanjaybatra65932 жыл бұрын
one more question on some other Topic, how and from where to get and download different supporting library's for PIC microcontroller ? e.g LCD library or I2c , or RS485 I mean any library
@FriendlyWire2 жыл бұрын
Libraries are not so common with PIC controllers; the reason is that each PIC controller is different. You can search for what you want to do, say, control an LCD. When you find a project online for a specific PIC you can usually use it easily yourself for the same PIC. For really advanced topics, such as SD card memory management or USB stuff you find some libraries, but for simpler stuff you probably have to code your own. I think of it as an advantage (long term) because it really teaches you how to code, but for beginners it can be frustrating. Do you have anything in mind, in particular? I would recommend to get started with a simple project, maybe one from this channel, and then take it from there :)
@anithasshenoy666210 ай бұрын
Can you show , how can a MC read an input , say voltage and do something , like switch on an LED , just like a voltage level meter or so?
@FriendlyWire10 ай бұрын
Of course, those are good starting points. Switching an LED: kzbin.info/www/bejne/m2W0Y5ePi8qXhrs Reading a voltage with an ADC: kzbin.info/www/bejne/d53Tk5WbjZxgeLc
@anithasshenoy666210 ай бұрын
@@FriendlyWire That was fantastic. Simple and straight.
@FriendlyWire10 ай бұрын
@@anithasshenoy6662 Thanks a lot! :)
@mohitrahaman Жыл бұрын
High quality stuff, soon you'll be big! Can't wait to see what you have in store for us.
@FriendlyWire Жыл бұрын
Thank you for your kind words, Mohit! All the best wishes :)
@1georgeh7 ай бұрын
Thank you so much. Very useful. Clear, simple to follow, and direct to the point.
@FriendlyWire7 ай бұрын
Thank you for your kind words, I am glad you found it useful!
@sanjaybatra65932 жыл бұрын
thanx a lot for nice video. I have a question , if the code has been written through mikroC....... Still it will work ?
@FriendlyWire2 жыл бұрын
Thank you, Sanjay! Can you send me a link to that compiler?
@sanjaybatra65932 жыл бұрын
I am sure HEX file will be same generated by MPLAB or MikroC.......but still want the clear my doubt.
@FriendlyWire2 жыл бұрын
@@sanjaybatra6593 If you have the .hex-file that is compiled for your PIC then you can definitely send it with the MPLAB IPE. The C code may be different for different compilers (XC8 in this case, but there are many others) but the .hex-file will always be the same :)
@oveschleisner-meyer8139 Жыл бұрын
Good clear and easy understanding tutorial... thanks a lot...
@FriendlyWire Жыл бұрын
Glad you like it, thank you so much!
@susilnishantha3711 Жыл бұрын
hi sir......is it possible upload the program from PIC to PC ?
@FriendlyWire Жыл бұрын
Yes, but you can only obtain the .hex file this way, and only if code protection is turned off on the PIC controller.
@AlonsoCorrales2 жыл бұрын
Great video!! I have an issue with one PIC from one of my clients. Somebody erase the PIC´s model on the chip, and I don´t the model to read the program. Any tips to do an auto recognition? Thnx
@FriendlyWire2 жыл бұрын
Thank you, Alonzo, glad you like the video! :) I am not aware of auto recognition, but usually the MCLR/PGD/PGC lines are at the same place given a package size. How many pins does the PIC have?
@AlonsoCorrales2 жыл бұрын
@@FriendlyWire 18 PINs
@FriendlyWire2 жыл бұрын
@@AlonsoCorrales In that case I would just try the pinout of the PIC16F627A (friendlywire.com/tutorials/touch/PIC16F627A-datasheet.pdf). MCLR at pin 4, PGD at pin 13, PGC at pin 12, VDD at pin 14, and VDD at pin 14. Then you can make a list of all 18-pin PIC's and try them out by selecting them in the MPLAB IPE, and see if it connects properly.
@pmimran1244 ай бұрын
Dear sir how to programe 30f2010 microcontroler ic rt809h programer
@FriendlyWire4 ай бұрын
This tutorial is for the PICkit3 programmer. Do you want to use a different programmer? If so, do you have a link so I can check it out?
@ecotronic66224 ай бұрын
Thank you for this video. Unfortunately MPLABX IPE V5.25 can't connect to the programmer (pickit3). I tried with an external power supply without success. The same programmer works fine with the standalone application pickit3 v.3.10.
@FriendlyWire4 ай бұрын
That is strange---although PICkit3 is no longer officially supported, I am using it every day with the newest release of MPLAB IPE. Can you share a screenshot? You can reach me on social media (links in description) or via email (at the bottom of www.friendlywire.com) so we can get this sorted out :)
@ecotronic66224 ай бұрын
@@FriendlyWire Thank you for your reply. Meanwhile, the problem is resolved, thanks to this video: kzbin.info/www/bejne/rJfQfahsjd91qtk. In brief - pickit3 had to be switched to MPLAB mode, either through the standalone application or by holding pressed the button, while usb plug-in.
@FriendlyWire4 ай бұрын
@@ecotronic6622 That is so interesting---I never had to do anything to my PICkit3 to make it work with the IPE. Thanks for sharing, this is good to know!
@palprofesional10 ай бұрын
I have a pic16f689 IC that has been programmed, and I want to copy it, but after I open it, it turns out the data is protected, how do I open the data protection without destroying the data that has been programmed?
@FriendlyWire10 ай бұрын
Unfortunately, if the data protection bit has been set, you cannot extract the data using the PICkit. That's why I never set it on my projects, just in case I ever need to clone a PIC and I no longer have the .hex-file.
@mabsonleo2 жыл бұрын
Would you like to give me advice about visual IDE ? I used visuino
@FriendlyWire2 жыл бұрын
Do you have a link to that one? I don't think I have ever used it, but it sounds interesting!
@NasirKhan-jl2sn9 ай бұрын
any video for dspic30f2010
@FriendlyWire8 ай бұрын
For now I will stick with PIC microcontrollers :)
@ANCHALCHAUDHARY-nk6uv9 ай бұрын
Do i really need to use Pickit 3, can't I directly dump the code from pc to microcontroller
@FriendlyWire8 ай бұрын
You need some sort of device for that. There are other options out there, including kits that use the serial connection from back in the day, but I find the PICkit3 or similar devices to be the easiest choice.
@johnsparks39792 жыл бұрын
Hello. Thanks for posting this video. I stumbled across it and wondered if this device maybe the answer to my problem. I have a motherboard on which the bios has failed due to my own stupidity as to how I flashed the chip (Winbond W29C020-12 32 pin 2mbit) whilst the onboard button battery was dead. I then flashed it a 2nd time and wrote over the back up (duhhh). The consequence is that the board cannot see a floppy drive or even a non accelerated ISA VGA card. The motherboard company are no longer around, but I have the bios on a floppy disk in the form of a .bin file which suggests the file is hexadecimal in nature. Would the mplab software be able to view this type of file in order to 'flash' it directly to the chip? Thanks.
@FriendlyWire2 жыл бұрын
Thank you for your message, John. I don't think the PICkit3 will be useful for that, since "out of the box" it only interfaces with PIC microcontrollers. It may be possible to write your own PICkit3 firmware, but I am out of depth at that question. I think at www.reddit.com/r/AskElectronics/ you may find people who know how to do that. Good luck, and sorry I could not be of more help, I hope you will find a solution!
@johnsparks39792 жыл бұрын
@@FriendlyWire Many thanks for your response. I will check the link and keep looking for a solution.
@FriendlyWire2 жыл бұрын
@@johnsparks3979 Good luck, and my apologies that I could not be of more help. Best of luck!
@FriendlyWire2 жыл бұрын
@@johnsparks3979 Best of luck! Did you find anything?
@MADDOG_BC Жыл бұрын
Really good Video but I just wanna know if you can programm any microcontroller like from other companies with the same software and the Pick it 3 or just PIC's?
@FriendlyWire Жыл бұрын
Thanks, glad you like it! This video only works for PIC microcontrollers and ATmega controllers, here is a list: pic-microcontroller.com/pickit-3-supported-devices/
@MADDOG_BC Жыл бұрын
@@FriendlyWire Thanks
@orsingmit75742 жыл бұрын
I can't find those pins name in this chip Z86E3116PSC
@FriendlyWire2 жыл бұрын
Thanks for the question! The Z86E3116PSC is a Zilog microcontroller, not made by Microchip. For that reason, unfortunately, we cannot use the PICkit to program it.
@orsingmit75742 жыл бұрын
Thanks
@anithasshenoy666210 ай бұрын
Nice video. Can you provide any link to PIC programming language libraries / headers etc.
@FriendlyWire10 ай бұрын
Thank you! I am using the XC8 compiler which you can download for free from the Microchip website. All the programs I write are on www.friendlywire.com, I always include them with the projects :)
@wtar8469 Жыл бұрын
You save me a couple hours or maybe days . Thanks.
@FriendlyWire Жыл бұрын
Thank you, happy to help! :)
@gaarrvvaa Жыл бұрын
Im using PIC18F46K22 but its showing connection fail
@FriendlyWire Жыл бұрын
Oh, that's not good. Can you send a photo of your setup? (My email is at the bottom of www.friendlywire.com, and you can also message me on Twitter or Instagram)
@isdiagnostic.software9 ай бұрын
How to calculate hex for using km change odo meter
@FriendlyWire8 ай бұрын
Hi! I am not sure if I understand your question, can you elaborate?
@cubirk4 ай бұрын
im having this error: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device. please help i even changed pics already and tried another compiler
@FriendlyWire4 ай бұрын
If it reads back 0x0 it most likely means that the PIC is not connected to power. Can you check the VDD and VSS pins for 5V?
@cubirk4 ай бұрын
@@FriendlyWire i got the cyan brick thing that connects all the pins already , and it did tell me that the pic is not powered but i fixed that error already using the ipe power section, but i still get the id error
@FriendlyWire4 ай бұрын
@@cubirk Can you send me a picture of the setup? You can find my email at the bottom of www.friendlywire.com . It's quite common to get these errors, we will figure it out :)
@cubirk4 ай бұрын
@@FriendlyWire oks thank you
@FriendlyWire4 ай бұрын
@@cubirk Thank you, I got your email! I will look at it today so we can figure it out. It's quite common to have these problems when setting things up, so I am confident we can solve it. :)
@Vancha11211 ай бұрын
Awesome video, just chose a pic10f200 as my first microcontroller to play around with, this will be real useful ^^
@FriendlyWire11 ай бұрын
Glad you found it helpful, and have fun! :-)
@thejoeblowshow2 жыл бұрын
Hi. Can you slightly re-program this project with a few slight changes, for hire?
@FriendlyWire2 жыл бұрын
I typically do not offer paid services, but feel free to reach out to me via email (at the bottom of my website www.friendlywire.com) and if it is only a slight change then I can do it for free :)
@thejoeblowshow2 жыл бұрын
Thank you Jens! I ordered everything that you used, so I should be receiving everything soon, and please, at least let me buy you a nice dinner via PayPal. Okay? I'll try my best to learn on-my-own, but if not, Bon appétit! : - ) LOL!
@FriendlyWire2 жыл бұрын
@@thejoeblowshow That's fantastic, let me know when it all arrives!
@thejoeblowshow2 жыл бұрын
@@FriendlyWire You'll definitely be the first to know. : - ) Also, just curious to know, how difficult would it be to add a sfx, (press/beep) with the obvious peripherals added on to the breadboard? Is this thought of mine even in the realm of possibility?
@FriendlyWire2 жыл бұрын
@@thejoeblowshow I am sure you could add a piezo speaker to the mix (and probably a transistor and some passives to drive it properly), but I have actually never worked with those before.
@mariamsal85312 жыл бұрын
WISH I HAD FOUND THIS CHANNEL EARLIER
@FriendlyWire2 жыл бұрын
Thank you so much, Mariam :)
@imtiazhussain50272 жыл бұрын
Hi dear. Its an excellent tutorial. How can I implement sine function for 8 bit PIC microcontroller. Please reply. Thanks.
@FriendlyWire2 жыл бұрын
Hey there! I think this would best be accomplished with an array, where you store the 8-bit values of your sine-function. Do you also need negative voltages?
@imtiazhussain50272 жыл бұрын
@@FriendlyWire Thanks. What you suggested, is more efficient solution.
@imtiazhussain50272 жыл бұрын
@@FriendlyWire no negative voltages
@FriendlyWire2 жыл бұрын
@@imtiazhussain5027 If you don't need negative voltages then it is really the easiest solution I can think of :)
@shrikantnikam24262 жыл бұрын
is there any other way to program pic microcontroller without using pickit to save money?
@FriendlyWire2 жыл бұрын
You can find unofficial copies of the PICkit online, they cost much less. Also there are some circuits proposed by hobbyists that can get the job done, but I have never used those. What is your budget for a programmer, and where are you located? Maybe we can find one for you :)
@shrikantnikam24262 жыл бұрын
@@FriendlyWire india
@FriendlyWire2 жыл бұрын
@@shrikantnikam2426 You can try searching for PICkit3.5, this is a popular third-party programmer that works well in my experience. Especially if you want to stay with PIC controllers it may be a good one-time investment. There are also older programmers that use the serial port to program PICs directly, but they do not work as reliably I find; one of these you can see here on my website: www.friendlywire.com/articles/gear/#ch5
@NZ2Pepper Жыл бұрын
Just the info I'd been looking for. Thanks 👍
@FriendlyWire Жыл бұрын
Glad you found the video helpful! :)
@tzampini Жыл бұрын
Hi. Nice video. Is there a way to save the settings so that you don't have to re enter them every time you start IPE? I tried saving the "environment", then importing it the next time I used IPE, but the saved settings didn't come in. Thanks!
@FriendlyWire Жыл бұрын
I wish I knew... I have to set it up again every time myself, too. If you find a way that works, let me know!
@tzampini Жыл бұрын
@@FriendlyWire I will definitely let you know if I figure it out.
@FriendlyWire Жыл бұрын
@@tzampini Thanks and good luck!
@edsonlopes36104 ай бұрын
Hello please is possible get the source code of protected PIC16F877A?
@FriendlyWire4 ай бұрын
Hello, thank you for your question. Unfortunately, if the source code is protected it is not possible to extract it with the PICkit.
@saverio170219672 жыл бұрын
hi could you give me a hand .. I have a file that I uploaded via axe027 cable in a pic18f14k22 the file has the extension .AXE I would like to convert it into a .HEX file to be sent with Pickit 2 you can do it.
@FriendlyWire2 жыл бұрын
Hello Saverio, thank you for your question. I am not sure what an .axe-file is, do you have a link with some documentation?
@ibrahimadam450 Жыл бұрын
Please I want you to assist me to program for a project
@FriendlyWire Жыл бұрын
Thank you for your interest! But I am sorry, I don't have enough time to help with individual projects, unless it is something that is very closely related to one of the videos, hope you understand. What is is about? :)
@SNStuart8 ай бұрын
Hi I love you videos. But did you do some video on the pic 10f200. I thought I saw some on your channel. Thank you again
@FriendlyWire8 ай бұрын
Hi Stuart, thanks for your kind words! Sorry, I have no videos on the PIC10F200. The chips I use most frequently are the PIC16F1455, PIC16F627A, and the PIC16F883.
@ganeshelectronic4733 жыл бұрын
How to measure three phase voltage 415v micro controller r phase voltage loop y phase can't read 415v phase voltage 0 measure sir if any formula
@FriendlyWire3 жыл бұрын
Hey Ganesh, thanks for the question! For measuring AC voltages I would definitely recommend to use some sort of galvanic isolation, like an optocoupler. AC line voltage with 50Hz is rather slow compared to the MHz resolution you can get with PIC microcontrollers, so it would be relatively simple to detect a zero crossing. But I am not sure if I understand the rest of your question, can you explain more? :)
@CliveDrone2 жыл бұрын
This is very good info and has got me 95% toward the end of my project. I think...But what do we do when some of the 8 pins on my PIC12LF1822 are labeled differently. It has a Vdd and Vss as 1&8 pins resp. but other pins are labeled RA0 to RA5. Am I off track now or can RA0-RA5 be used? Thanks for the interesting video.
@FriendlyWire2 жыл бұрын
Thanks for the nice comment, Chris, I am so glad my video was helpful! :) Can you send me a link to your datasheet? I am happy to help! //edit: Nevermind, found it (ww1.microchip.com/downloads/en/devicedoc/40001413e.pdf)! Look at table 2 on page 3 :) It looks like PGD is RA0/pin 7; PGC is RA1/pin 6, and MCLR is RA3/pin 4. Hope that helps!
@CliveDrone2 жыл бұрын
Hey Thank you so much. I appreciate the help.¡
@FriendlyWire2 жыл бұрын
Great, happy to help, and thank you for stopping by! :)
@CliveDrone2 жыл бұрын
@@FriendlyWire Hey Jens, after many days of delay I got around to programming my PIC today and it went very smooth and programmed successfully. Thanks again for your easy to follow directions and help.
@FriendlyWire2 жыл бұрын
@@CliveDrone Hey Chris, that's fantastic news, I am so happy to hear it! On to new adventures!!!
@stnwrd2 жыл бұрын
Can the PIC be reused/reprogrammed over again, or is it one time use?
@FriendlyWire2 жыл бұрын
Good question, I should have mentioned! It can be used again and again :)
@stnwrd2 жыл бұрын
@@FriendlyWire Ok great and thanks
@FriendlyWire2 жыл бұрын
@@stnwrd Happy to help, and let me know if you have any other questions :)
@stnwrd2 жыл бұрын
Ok Thanks again
@satishkumar-gg5fm Жыл бұрын
Can we copy hex file from microcontroller??? Please reply as soon as possible 🙏
@FriendlyWire Жыл бұрын
Follow the steps after 7:00. Connect to your PIC, and then click on "read." Then click on File -> Save As, and you can save the .hex code onto your computer. If "code protection" has been enabled, then it won't be possible to extract the .hex-code like this, however. Hope it helps!
@satishkumar-gg5fm Жыл бұрын
@@FriendlyWire thanks 🙏
@FriendlyWire Жыл бұрын
@@satishkumar-gg5fm Happy to help, and thanks for stopping by! :)
@mohomadashad46413 жыл бұрын
can i do cording with out this device?
@FriendlyWire3 жыл бұрын
Yes, the coding is done just on your computer. You only need it for the final step of transferring the code onto the controller.
@mohomadashad46413 жыл бұрын
@@FriendlyWire is there other way
@FriendlyWire3 жыл бұрын
@@mohomadashad4641 You need to physically connect the controller to the computer to transfer the code. The PICkit3 is one possible solution, there are other adapters as well. But you will always need one of these adapters.
@mohomadashad46413 жыл бұрын
@@FriendlyWire ok. what are the others
@FriendlyWire3 жыл бұрын
@@mohomadashad4641 PICkit4 is the newest one, but the PICkit3 works just fine. Why do you want to use a different one?
@rogthedodge99 Жыл бұрын
Hi. Great video. For us latecomers, I notice that the latest MPLAB IPE v6.10 (Directed to the download site on your FriendlyWire website) no longer supports the PICKiT 3!!. I found out the hard way. Will uninstall and go back a version or two. Thank you
@FriendlyWire Жыл бұрын
Thank you for your feedback, I was not aware of that. I am traveling right now, but I will check this on my system when I get back. It would be a real shame, since the PICkit3 is cheaper and just perfect for hobby applications, no need for the much more expensive PICkit4 in my opinion. Thanks again!
@rogthedodge99 Жыл бұрын
@@FriendlyWire Hi. Got it wrong! You can use the PICKit 3 with v6.1.0!! You have to download extra packs which includes support for the ‘3’ So we can breathe again👌
@FriendlyWire Жыл бұрын
@@rogthedodge99 Good to know, thanks for checking! Do you have a link for where to download the package?
@JohhJohn-v8l13 күн бұрын
Hello how make ir remote
@FriendlyWire12 күн бұрын
Hey John, thanks for the question! I have actually been working on a project like this for some time using a phase-locked loop (PLL) but got stuck in the analog electronics part of signal amplification to make it work reliably... I hope to get back to it soon! :)
@hemashri9 ай бұрын
Your explanation above is great. thanks.
@FriendlyWire9 ай бұрын
Thank you very much, I am glad you like it! :)
@homijbhabha88602 жыл бұрын
Very good video sir, Is there any way to upload a hex file onto a PIC microcontroller without using a PICkit, instead using an Arduino?
@FriendlyWire2 жыл бұрын
Thank you for your kind words :) Yes, it is probably doable, since you just need the three wires MCLR (Master Clear), PGD (Program Data), and PGC (Program Clock). But I am not an expert on doing this. If you search on Google for "homemade PIC programmer" I am sure you will find many helpful resources!
@jagmarc2 жыл бұрын
@@FriendlyWire alternative of a pickit3 for "ICSP (in circuit system programming) there's a way of directly connecting a PC serial port to the RB6/RB7 and uses a few components including a 12 V keyfob battery for the VPP. Has to use a real hardware rs232 serial port, a PC with usb adaptor is too slow to work.
@FriendlyWire2 жыл бұрын
@@jagmarc Yup, good point! Older development boards used to use that method, check out the Velleman K8048 that I list on my website here: www.friendlywire.com/articles/gear/#ch5 . I have found these types of programmers to not work as reliably as the USB ones, though.
@jagmarc2 жыл бұрын
@@FriendlyWire where are you serving your website from? I see you have a domain name. When my device connected the connection didn't upgrade itself to a https . I guess you're missing a setting on your .httaccess file or cPanel configuration
@FriendlyWire2 жыл бұрын
@@jagmarc You can also use www.friendlywire.com/articles/gear/#ch5 .
@beatrute26772 жыл бұрын
thanks man, this was a good presentation.
@FriendlyWire2 жыл бұрын
Glad you like it!
@michaelkotthaus7120 Жыл бұрын
Thank you for your tutorial. Well done! - But the resume to your title "how to get source code onto a PIC microcontroller" is: not at all. The controller can only execute machine code.
@FriendlyWire Жыл бұрын
Thank you! And yes, that's really the only way to think about it. But I decided to title the video like this because as a beginner I always thought that the actual code would be stored on the microcontroller. I hope the title did not make the video confusing :)
@jhoanrivero78853 жыл бұрын
Great help frienly wire
@FriendlyWire3 жыл бұрын
Thanks Jhoan, glad you like it!
@ajs-tatu-spitstop92352 жыл бұрын
How to clear pic 18f4550 can u help me
@FriendlyWire2 жыл бұрын
Did you find the datasheet for the PIC18F4550? MCLR is pin 1, PGD is pin 28, and PGC is pin 27. You can connect VDD at pin 20, and ground at pins 8 and 19. For anything else you just need to replace "PIC16F627A" in the tutorial above with PIC18F4550. Does it work? Let me know, I am happy to help more.
@ajs-tatu-spitstop92352 жыл бұрын
@@FriendlyWire let me try notify u shortly
@FriendlyWire2 жыл бұрын
@@ajs-tatu-spitstop9235 Sounds good!
@ranasaeed5807 Жыл бұрын
sir i need your help
@FriendlyWire Жыл бұрын
I'll do my best! :)
@ScottWalshWoodworking3 жыл бұрын
the windows XP sound effect makes me nostalgic
@FriendlyWire3 жыл бұрын
Ha, you and me both! :) ( It's at 1:50 for anybody who is interested. )
@fabriciocuellarzuna5249 Жыл бұрын
Amazing. You helped me a lot. Thank u very much bro!
@FriendlyWire Жыл бұрын
Thank you so much, Fabricio, I am glad you found my video helpful!
@pdcigbt72932 жыл бұрын
Program pic 12f683/684/675 sir...thanks..
@FriendlyWire2 жыл бұрын
Is it all working for you? All you need to do is find the locations of the PGD, PGC, and MCLR pins. Let me know if you have any questions :)
@adamismaad96042 жыл бұрын
Can I check a code from PIC18F2420 too?
@FriendlyWire2 жыл бұрын
Hey Adam, thanks for the question! I am not sure what you mean by check, but the MPLAB IPE does indeed support the PIC18F2420, so you could connect it to the PICkit. For the PIC18F2420, MCLR is at pin 1, PGD at pin 28, PGC at pin 27, VDD is at pin 20, and GND is at pins 8 and 19. (See the datasheet here: ww1.microchip.com/downloads/en/DeviceDoc/39631E.pdf ). Let me know if that helps! :)
@adamismaad96042 жыл бұрын
I mean, I have one pre -programmed PIC microcontroller and another that has not been programmed. So my question is can I copy or re -read the code from a pre -programmed PIC microcontroller and re -copy the program and transfer it to another PIC controller
@FriendlyWire2 жыл бұрын
@@adamismaad9604 Yes, if the original PIC does not have code protection enabled you can read out the .hex-file. Look at 7:30 in the video. You can click on "read" and then you can download the existing .hex-file. Then, if you click on File -> Save As you can save this retrieved .hex-file, and then send it to any other PIC you want.
@adamismaad96042 жыл бұрын
Oh ok thank you very much
@FriendlyWire2 жыл бұрын
@@adamismaad9604 Happy to help, let me know if it works!
@sudarapremathilaka17063 жыл бұрын
Great Video Tutorial. PIC programming is my favourite.Thanks.
@FriendlyWire3 жыл бұрын
Thank you, Sudara, I am happy you like it! :)
@muhammadhayyan99143 жыл бұрын
Love your videos
@FriendlyWire3 жыл бұрын
Thank you, Muhammad, glad you like them!
@bharathreddy69629 ай бұрын
bro how to do for pickit2
@FriendlyWire9 ай бұрын
I am not sure if the PICkit2 is still supported by the current versions of MPLAB :( But the PICkit3 still is, for now, and you can get clones (sometimes called PICkit3.5) on Amazon and other sites for around $20. I know it's super silly that they keep making new programmers, since for these simple PICs the old ones work just fine...
@martinveselovsky8135 Жыл бұрын
Great and easy explanation, great video 👍
@FriendlyWire Жыл бұрын
Thank you so much, Martin, glad you like it!
@黃先生-d7o Жыл бұрын
Good~ Thank you
@FriendlyWire Жыл бұрын
Glad you liked it! :)
@harishharish73232 жыл бұрын
program memory: start address = 0x0, end address = 0x7ff configuration memory program memory Address: 0 Expected Value: 120a Received Value: 3fff Failed to program device I cant find what is the problem in pic16f877a
@FriendlyWire2 жыл бұрын
This looks like a data transmission error, most likely the cables are not connected properly, it happens sometimes. If you have a picture, you can send it to me on Twitter or Instagram @FriendlyWire and we can figure it out :)
@yaseralali6309 Жыл бұрын
Did you solve the problem ?
@MrWatlow2 жыл бұрын
I want to do the opposite, I want to pull the code from a PIC provided that it isn’t protected. How is that accomplished?
@FriendlyWire2 жыл бұрын
Good question! It is impossible to obtain the C code from the PIC, all you can do is get the .hex-file. At 6:54, if you are connected to the PIC, you can click on "read" and that reads out the program memory, if it is not protected. The reason you cannot download the C code directly is this: it doesn't exist on the controller. C code only exists for us as a tool, but before it gets onto the controller it is compiled into the .hex-file. Hope this helps! :)
@MrWatlow2 жыл бұрын
@@FriendlyWire that is fine. If I can get the hex code, I can then download it to other PICs to duplicate the same function, correct? Also, if the PIC in my equipment had the part number removed by the manufacturer, how do I figure out which one it is? I have the schematics of the board and all pin outs.
@FriendlyWire2 жыл бұрын
@@MrWatlow Yes, the .hex-file is all you need. There are many PICs with the same packages, but their connections PGD/PGC/MCLR tend to be at the same place for all PICs in a given package. But you still have to know what PIC it is. You can try this: maybe you think it's a PIC16F627A. Configure your MPLAB IPE to PIC16F627A and try to connect the PICkit3 to that mystery PIC. If it works, it's a PIC16F627A, if it doesn't, you have to keep trying.
@tanvirmahmud10483 жыл бұрын
make video on how to write programme
@FriendlyWire3 жыл бұрын
For now, all my tutorials have companion articles where I explain the source code in detail. I am thinking of making videos just about the programming as well, kind of like this one here: kzbin.info/www/bejne/f2fQkHeKedh4arc . Is that what you have in mind? :)
@koroshjavan7119Ай бұрын
By the way, my programmer device is PICKit 3.5, thank you
@FriendlyWire25 күн бұрын
This should work with either PICkit3 or PICkit 3.5 :)
@roman_m2 жыл бұрын
and you don't program anything except light bulbs?
@FriendlyWire2 жыл бұрын
You can program a lot of things with PICs :) What do you have in mind?
@roman_m2 жыл бұрын
@@FriendlyWire good day here is only a video about flashing LEDs...this is not enough for beginners-I don't understand enough either.I have one project and I want to ask if you will help me?
@FriendlyWire2 жыл бұрын
@@roman_m Hey Roman, you can check out the other videos on my channel (as well as the articles on www.friendlywire.com) and that should definitely get you started with PIC microcontrollers. But I agree, there is always more to talk about! What is your project about?
@jerril423 жыл бұрын
Fantastic! It seems to have everything covered. I did not know the password to get into the advanced mode, it seems silly to need one. I thought I had to set something up with Microchip, I really don't like registering for everything I use. Thanks Jens, take care :)
@FriendlyWire3 жыл бұрын
Thank you, Jerry. I think they added the password (that can also be changed) so that it is possible to prevent a user from switching into the advanced mode. I can imagine that in schools or university labs instructors want students to use the default mode instead.
@jerril423 жыл бұрын
@@FriendlyWire Ah yes, it is good to keep students out of harms way. Thanks :)
@digitalmachine010111 ай бұрын
Good information
@FriendlyWire11 ай бұрын
Thank you, glad you like it!
@uuuu65902 жыл бұрын
This was great. Thank you very much 💟
@FriendlyWire2 жыл бұрын
Thank you, glad you like it! :)
@davidenanni53112 жыл бұрын
Finally, after many years, i'm able to program a 16F84A, many thanks to you. Now, i'm trying to read ad program EEPROM 24C02 but it seems doesn't work... any suggestion? Thanks again! p.s. New sub!
@FriendlyWire2 жыл бұрын
Hello Davide, thank you for sharing, I am so glad to hear that and it means a lot to me! I have not covered EEPROMS yet, but hopefully I will do so in a future video. Thank you for the suggestion :)
@jagmarc2 жыл бұрын
maybe the title of the video should be "how to send source code to a PIC". i must admit i clicked the video thinking it was "how to get..." as in "how to obtain..."
@FriendlyWire2 жыл бұрын
Oooh, I never even though about that! I hope it was not too confusing, but I will think about renaming the video. Thank you!
@ranasaeed5807 Жыл бұрын
hello sir nice information ❤
@FriendlyWire Жыл бұрын
Thank you, glad you like it! :)
@Amin-py6tl7 ай бұрын
what a great video thank you nerd
@FriendlyWire7 ай бұрын
Haha sure thing :)
@RenatoCorreaRJ3 жыл бұрын
Great! I Love it.
@FriendlyWire3 жыл бұрын
Thank you, Renato, glad you like it!
@thanatosor3 ай бұрын
Are people still using PIC nowadays ? I have so many mixed comments into starting with it...
@FriendlyWire3 ай бұрын
I guess the answer is YES, since this channel exists ;-) I like to use them for the type of projects and applications I share on this channel, but there are of course other alternatives. I like to program them in C, since you learn a lot about how registers work, and how the hardware is configured. But you have to choose what you like best, of course :)
@thanatosor3 ай бұрын
@@FriendlyWire i have just tested some PICs with this PICKIT3, and I must say it's a very hard time finding a working version of IDE/IPE to actually let you connect the device. I eventually had to use MPLAB X IDE 6.20 + Standalone PICKIT3 Programmer 3.10 to completely control over this. I think PIC / PICKIT3 are very obsolete technology nowadays that Microchip doesn't even bother to maintain correctly.
@rajanne29474 ай бұрын
Title is wrong! You don't get source code into a micro! Only machine language or hex files can be sent to program a PIC micro. Anyway it's a useful video! From Chennai city, India.
@FriendlyWire4 ай бұрын
True, the source code is first compiled into something the PIC understands, and then that .hex-file is transferred to the PIC. I chose this simpler title to make the video more understandable to beginners, but I don't think it will confuse anyone, because if you watch the video you see that I explain it exactly like this :)
@_jmeg_34363 жыл бұрын
Microchip shared this video. :)
@FriendlyWire3 жыл бұрын
It was very kind of them :)
@_jmeg_34363 жыл бұрын
@@FriendlyWire You covered this topic well, so I’m not surprised. I just subscribed 👍🏻.
@FriendlyWire3 жыл бұрын
@@_jmeg_3436 Thank you, Jeff, welcome to the channel! :)
@pkefvkef4856 Жыл бұрын
Hello my friend. I have a microchip PIC 24F 16KA 102-I/SS e3 1845 CAB. it has been placed inside an inverter.Now for reasons well understood the constructor of the inverter is not willing to give me the programm of it or even send me one [to buy of course ] programmed one.He presses me to buy a new inverter around 450 $.I think is totally unfair and i would call this seller a Big Thief.I dont mention more.But i say this.I have already bought pick it 3,5 programmer.Is there a hope i can do something??and what about if it is encrypted??And my last question.How does the ministry of commerce of each country allow these thieves for a Pic chip of 2 euro cost to force you to spend another 450$ ???Thank you for your time.....Respect to your work my friend.
@FriendlyWire Жыл бұрын
I am sorry this is so expensive... It seems a bit extreme, to be sure. If the developer has not activated "code protection" you can read out the .hex-file with the PICkit3. But I am sure they enabled the code protection using the configuration word of their PIC, which is what companies can do to protect their intellectual property. In this case it is not possible to get the .hex-file from the PIC.
@jackski57322 жыл бұрын
plz redo using C++
@FriendlyWire2 жыл бұрын
I am only using the XC8 compiler, and that specific dialect for PIC microcontrollers. Is there anything in C++ that you would like to do that is cumbersome or difficult in the XC8 language?
@DungLe-sr7tq2 жыл бұрын
The title is a little confusing. I was expected to see a trick to get the source code from a flashed chip, not into it.
@FriendlyWire2 жыл бұрын
Oh, I see, that thought did not cross my mind at all, thanks for the heads up!
@TheDiveO2 жыл бұрын
Anyone else seeing the thumbnail, reading "mains" and the arrow point to the board, and then thinking, oh, BigClive found another crappy power supply?