Are PIC Microcontrollers Any Good? - Beyond Arduino #4

  Переглядів 34,810

Sine Lab

Sine Lab

5 місяців тому

AVRs are now the world's most popular family of 8-bit microcontrollers. But it wasn't always that way. Let's take a look at AVR's old rival: PIC.
-- Links --
My Website: sinelab.net
Final Code: sinelab.net/code/PIC_pwm.c
Schematic: sinelab.net/img/PIC_Schematic...
Download MPLAB & XC8:
MPLAB X: www.microchip.com/en-us/tools...
XC8: www.microchip.com/en-us/tools...
Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
--

КОМЕНТАРІ: 154
@t1d100
@t1d100 5 місяців тому
I started with PICs and really liked their capabilities. I totally abandoned PICs, because of the terrible MPLabX IDE/Compiler and PICKit programmer hassles. Microchip had long (years) been informed of the myriad of issues and did not bother to make corrections. Interestingly, IIUC, Microchip bought Atmel. And, IIUC, the 328P, the basis of Arduinos, is an Atmel product.
@stephencurtis2282
@stephencurtis2282 5 місяців тому
I started with PIC32 and loved the performance compared with the old-world 8051/Z80/6809 derivatives I had been used to back in the 80's and 90's. I bought the PIC IDE and compilers for the PIC32 and kicked things along back in 2009. Then (14 years later), I discovered the STM32 range with its FREE tools, including the CUBE IDE (Eclipse) and the MX configuration tool. This was amazing, and I did not have to spend a thousand or more dollars per tool like the PIC32. For a hobbyist like me this was revolutionary. Even the lower M4 series ran at 84 and 100Mhz, and, for a few dollars, I could get some good Chinese boards and the aftermarket STLINK interfaces that have completely replaced all the PIC32 tools for a fraction of the money ANNNND the STM32 peripherals are a snap to configure using the MX tool, which can be integrated with the Eclipse IDE. One gotcha is to understand what gets overwritten by the MX tool. I suffered there originally but I have to say that have become more comfortable with this and finally waved goodbye to PIC. I still have a number of various types of PIC232 uC's but I will probably never use them. STM32 has timer support for incremental encoders out of the box - a real selling point for me, and the ADC was VERY simple to configure and run, even with DMA. The PIC32 on the other hand, was a nightmare to configure. Then I stumbled on the Teensy 4.1, an exciting rabbit hole, but without the peripherals that I really liked in the STM32 series.
@KaradevNetLtd
@KaradevNetLtd 4 місяці тому
@@stephencurtis2282 for what universe you compare pic32 from this decade with 8051 from past 60 years. it is obviously that pic 32 is better light years in front of 8051 or z80 :)))))))
@rickhunt3183
@rickhunt3183 4 місяці тому
You really shouldn't compare a Z80 to a microcontroller. A Z80 can be used as an intelligent controller with peripheral interface adapters like the 8255 and complex programing, but no microcontroller can a run an OS and function as a computer. They really can't be compared. I used PIC controllers for over 20 years because they were the only game in town except for National Semiconductor's COP 400 series controllers. Make sure you don't become a fan boy, or you're going to miss a lot of opportunities. Try branching out to something else like a raspberry pi pico w. @@KaradevNetLtd
@stephencurtis2282
@stephencurtis2282 4 місяці тому
@@KaradevNetLtd Oh Lord I was not COMPARING. as much as I was admiring!! Please read the words. "I started with PIC32, and I loved the PERFORMANCE compared with the old-world 8051/Z80/6809 derivatives I had been used to back in the 80's and 90's." What's your point? (besides some arcane one-upmanship). Having access to the newer chips was great, and I knew what the difference was because I had experienced the old stuff - it's marvellous what you get performance-wise and tool quality that makes it all so easy. Please tell me why you think this is sooooooo obvious?? Am I not allowed to share my pleasure with what we have today? Also, the 8051 is not really 60 years old (quite), and plenty of 8051 derivates are still around. The FREE STM32 tools make it an excellent experience and one reason I waved goodbye to the PIC32. Also, what did YOU contribute to the light-years-aheadness of the modern tools?? - Are these things yours to be proud of? Or are you simply taking advantage of the accident of your time of birth? The universe I was comparing (as you so eloquently put it), was where I had 20 or 30 Eproms laying around the eraser, a 15 minute erase time for about half a dozen Eproms at a time, a C compiler and a batch sequence to compile, link and produce object code. A utility that could be used to load the new program into the Eprom programmer and thence to the erased Eprom, a ZIF socket to lug the new program into, almost no debugging tools except a serial port and some LEDS to blink, a book on the instruction set, an assembly code dump of the program and VERY slow progress. Have YOU actually developed anything in this arrangement? The 8048 development environment we had at work was then worth about $50,000 (in 1986) - completely outside the capability of a hobbyist then, and now it's simply remarkable what you have access to these days - and I like it - and I feel privileged to be able to be involved at all. That's the universe I am comparing with.
@dieSpinnt
@dieSpinnt 4 місяці тому
Microchip never targeted or marketed towards hobbyists (especially in the past). It is absolutely normal that you pay a price for industry standard tools, tooling and a platform that is intended to fulfill regulations, safety standards and some important certifications ( are you guys comedians, comparing Arduino ... a learning tool, a toy ... which is a great platform ... with that? RTFM!). You also get product support and industry standard education for those products, availability of the supply chain and replacement parts ... guaranteed for typical professional time periods. Also: What clown compares whole product families against each other? PIC, AVR, STM32 all provide a wide spectrum of specialized types and I/O or processing capabilities, even DSP and customer tailored applications. I tell you: That clown isn't even funny ... he has just no expertise and no clue on the matter, which is rather embarrassing. Anyways, no one is forced to use something. The market is diverse and ... why I am even explaining this ... for someone who doesn't appreciate a wide variety of MCUs available and sees this instead as his childish opportunity to "grade" something that he doesn't understand, you cannot explain that you USE THE RIGHT TOOL FOR THE RIGHT JOB (this applies also to your design and choice of MCU). Although the best in this thread is the crying. Like: "Mummy .... maaaaaah ... a Porsche is sooooo expensive that I cannot afford it. They are a bad bad company". Imagine that this is even a specialized emergency car construction, which of course costs an arm and a leg. And in fact, you can't even do anything with it, because this is not your use case (I'm not talking about delusions to be an emergency doctor), but you still complain that it isn't useful for you ... and you "totally abandoned" it. Which is maybe the only action you've done so far that made sense. MPLAB X IDE is based on the Net Beans platform - effectively a competing open source platform to Eclipse. So now we know your preferences. Do you need another tissue? Really guys, what do you hope for when you write such useless comments? Someone who listens to you, because Microchip doesn't (which they told you before, that they do not care about you 1000$ customer). Do you search for fellow sufferers so you can form a crybaby club together? Well its just that: "Hey, THIS platform is better than that (who would've guessed it ... the platform YOU use?!) ... ", is so embarrassing and tells that someone does not even know that he knows nothing. Anyways, who cares. At least you learn something which is good. And if it be only that wasting money hurts you. (I do not address this "I WANT EVERYTHING FOR FREE"- guy here, obviously). Edit: Oh and of course, ST Microelectronics has no professional tools, customer support programs and (for the clueless hobbyist) "overpriced" development environments (including plugins) ... yes? NO! They have exactly the same horrors for you in the backhand. But you would know that if you had the energy to look it up. However, I admire your self-confidence. How can someone with such great ignorance and lack of knowledge allow themselves to criticize or evaluate something? My respect! **facepalm**
@mikeyjohnson5888
@mikeyjohnson5888 5 місяців тому
Almost 2 decades ago, when I was absolutely obsessed with robotics, PIC was THE most recommended microcontroller in most books for making and programming your own robot. As a 10 year old, I though I was hot shit making a line follower following some plans and a kit. Lemme tell you when I was first exposed to working with the PIC and everything involved, I hit a huge brick wall. My electronics, and computer literacy was minimal. My only way of using the internet was a local library. Jumping from breadboarding to microcontrollers was a big misstep for me and that was further compounded trying to get the PIC working. Now, after 2 decades it isn't that bad. An afternoon of reading through some docs and I'm good to go. I have a huge amount of respect for the people that worked through these things without internet access back in the day. It makes things so much more accessible.
@evanbarnes9984
@evanbarnes9984 5 місяців тому
I had a very similar experience! I tried to make the jump to a PIC and programming in C++ after using a Basic Stamp 2 for a couple years, and that killed it for me. I think trying to learn C++ by myself from a book as a 12 year old was a tall order. It's so much fun nowadays! We have so many interesting and cheap microcontrollers to play with.
@GDScriptDude
@GDScriptDude 5 місяців тому
There were datasheets and books published by the chip makers back in the day. There was no barrier to understanding the devices. I developed a piece of equipment using a PIC chip decades ago.
@patrickd9551
@patrickd9551 4 місяці тому
There was another competitor, a great little company called Atmel which had the AVR line of chips. Well long story short, you were able to program an AVR with regular open source tools with really cheap requirements to get started. Enter the era of Arduino and they basically killed it for the hobby market. Microchip, whilst having a superior line of chips, kept their ecosystem closed, required expensive tools and ended up buying Atmel because that is what you do with a competitor if they threaten your business. While PIC may have been the bomb back in the day (I will agree to that), it was Atmel and the Arduino framework that unleashed the hobbyist market that it is today. The basicstamp was a nice try, but the pricepoint at 39 dollars was too high anyway for far too few capabilities. I also agree that the basic stamp provided the idea for arduino, but I personally feel that the open source part really killed it, even though it also meant that cloning boards was equally easy. Anyway, once I learned about the AVR line-up and the easiness of programming those microcontrollers, it was really easy to turn my back to the PIC.
@maksimmuruev423
@maksimmuruev423 4 місяці тому
@@patrickd9551 Yes I agree Ardunino kill the PICs .because their management cant see straign. PIC was my first microcontroller.. and I study it just by reading manual for the chip.. it was really good.. really good assmbler and backcompability in family.. perifiral.. easy to program.. actually for programm AVR you have to have programmer or use tricky thing on LPT port thich was suck, but for PIC was really easy programmers for COM port..(no debugging of course) . Microchip even do send free samples to me few times..So it was great time.. but in nowadays Arduino just wins..
@L2-Lagrange
@L2-Lagrange 4 місяці тому
EEV blog did an incredibly interesting interview with the CEO of microchip a few months back. As somebody who has used PIC microcontrollers but in school and professionally, it was great to hear. PIC microcontrollers are almost ubiquitously used in things like ventilators, among many other things (based on the CEO's claims, which are obviously biased). It is an incredibly interesting interview which I recommend listening to, a lot of it has to do with the economics of the PIC, production, etc.. Edit: The XC8 compiler is specifically for the 8-bit MCU's. X16 would be used for 16 bit ones for example.
@SineLab
@SineLab 4 місяці тому
I'll have a listen to that interview :)
@jackphilp7057
@jackphilp7057 4 місяці тому
MPLAB IDE is the biggest drawback by far for a lot more reasons than listed here. There are a lot of bugs which can be design breaking, like not being able to use LVP which locks you out of using the MPLAB SNAP programmer. There's other bugs as well with the compiler and the chips own settings that will prevent you from getting what is listed in their own datasheet. Also if you tell Microchip about these issues they will run you around in circles unless you're a large purchaser of their chips (manufacturer or design firm).
@yurkshirelad
@yurkshirelad 4 місяці тому
Thanks for this. I've always wondered about PICs.
@stephan5618
@stephan5618 5 місяців тому
Makes the rather compliacted topic of interrupts understandable! Great video, thx.
@andymouse
@andymouse 5 місяців тому
If you think this was easy you should look at AVR chips as this seems overly complicated to me but I have no experience with PICS :)
@SineLab
@SineLab 5 місяців тому
Thanks for watching!
@listerdave1240
@listerdave1240 4 місяці тому
I used Arduino mostly when I need to put together quickly something relatively simple, using the libraries and borrowed code. However when I need something more complex, requiring accurate timing and so on I still go back to PIC and raw code things, even using assembly language, rather than using ready made libraries. I still find it very difficult with Arduino, whether with ESP32 or AVR to do real time things with sub microsecond timing. That may be though just because I started with PIC and have much more knowledge and experience with it. I have tried digging down to the 'bare metal' of AVR and ESP32 but never quite managed to get things to work properly. The PIC on the other hand I find very difficult and tedious to do things such as WiFi, internet access, user interfaces and so on so I often tend to use both a PIC to do the actual work and an ESP32 as a user interface, file storage and so on.
@kristakis
@kristakis 5 місяців тому
Great overview, looking forward to learning more about the USB functionality.
@SineLab
@SineLab 5 місяців тому
Coming soon!
@baconsledge
@baconsledge 4 місяці тому
I work with all microcontrollers but still love the little 8 pin PICs like the 12f675 for projects. Using an MELabs programmer along with Oshonsoft Pic Basic, development is easier than Arduino and more satisfying as there is not as much code overhead. PIC assembly is fun in itself!
@xzddakfdmiug5832
@xzddakfdmiug5832 5 місяців тому
Thanks for making a video on this interesting topic.
@SineLab
@SineLab 5 місяців тому
Thank you for watching the video :)
@AlbertDongler
@AlbertDongler 5 місяців тому
Optimisations in the XC8 compiler? Let's just say the non pro version deliberately creates clunky unnecessary slow code. See for your self and look at the assembler listing it produces... I think PICs are fine if you're happy to code in assembler. Although the architecture of some of the more "primitive" devices absolutely sucks. Bank switching? Please! I eventually gave up on PICs altogether - as I got fed up with having to re-invent the wheel and switched over to the Arduino eco-system. Program those in C++ but deal with the registers directly and you're away.
@t1d100
@t1d100 5 місяців тому
Wow, you have really improved with your presentation skills. Bravo! Atta-boy!
@SineLab
@SineLab 5 місяців тому
Thank you for giving advice along the way :)
@hectorvidales876
@hectorvidales876 4 місяці тому
Very cool channel and thank you for this tutorial!
@SineLab
@SineLab 4 місяці тому
Thanks for watching!
@roysutton577
@roysutton577 Місяць тому
Back in the mid 90s I became proficient with the 8-pin PIC12CE673 with 1 input and 5 IO, 1k words EPROM and 128 bytes RAM. I plugged it into the serial port of a handheld GPS and extracted the NMEA serial data at 4800 baud. I programmed it to sound a beeper when my GF went over a preset speed but she said it was always beeping so she powered it down! Great video, brings back a lot of good memories.
@emmanuelgonzales837
@emmanuelgonzales837 Місяць тому
great video...very informative....than you for sharing..
@mikegLXIVMM
@mikegLXIVMM 3 місяці тому
I used Microchip PIC controllers in the 90S to make several good products for a company. They were fast and reliable. I would say they are good chips.
@adamkekow6558
@adamkekow6558 5 місяців тому
MPLAB SNAP is one of the new microchip debuger/programer. Not only allows you to program pic uC but aslo AVR. It cost much less than PICKIT 5.
@ParthBhat
@ParthBhat 4 місяці тому
Well I loved your tutorial and the fact that you are running Linux makes me even more excited. I had faced a lot of screen issues when running mplab on Linux. And speaking of PIC oh well it is really a treasure when you really want a stone/robust ADC readings! I’ve never seen any 8-bit mcu which would have such a damn spot on robust adc. I often use pic when there’s something related to high voltage meters or adc measurements! It’s just bang on! Thanks for making the tutorials it would really help be newbies and beginners to work on it. Cheers! 🎉
@SineLab
@SineLab 4 місяці тому
Linux is the way to go :)
@pauliexcluded1
@pauliexcluded1 Місяць тому
Love the pics
@pauliexcluded1
@pauliexcluded1 Місяць тому
The picit 3 debacle tho…
@planker
@planker 4 місяці тому
Excellent presentation. I'm an Arduino guy looking at the PIC stuff. I enjoy digging around in Datasheets and investigating black blobs as if I had x-ray vision. But really, the interrupt demo with three things going on, has me sold on my next rabbit hole. Thanks
@icarossavvides2641
@icarossavvides2641 4 місяці тому
What are you trying to say? You like PIC's or you've just discovered interrupts?
@planker
@planker 4 місяці тому
@@icarossavvides2641 Microcontrollers in general. The interrupt is always fascinating. I should be focusing on my coding however.
@SineLab
@SineLab 3 місяці тому
Have fun :)
@planker
@planker 3 місяці тому
@@SineLab I just received 3 AT89S52-24PU.s from digikey today. I'm gunna need help.
@EinzigfreierName
@EinzigfreierName 5 місяців тому
I always preferred AVR over PIC - but that was 20 years ago. I switched to STM32 around 2011 and don't see why I would ever use a 8-bit micro again.
@Atlantis1986
@Atlantis1986 4 місяці тому
There are PIC32.
@picklerix6162
@picklerix6162 4 місяці тому
It took me forever to wean my boss off of the Atmel 8-bit microcontrollers. I finally convinced him to move to a 32-bit Raspberry Pi Pico which has Arduino support. I couldn’t convince him to get away from the Arduino IDE. I like the Arduino IDE but the latest IDE has limited debug capabilities. I did get the Raspberry Pi Picoprobe working with a special version of OpenOCD in Visual Studio Code.
@gmu3134
@gmu3134 23 дні тому
Cost
@codysmith8283
@codysmith8283 4 місяці тому
Started programming microcontrollers around 20 years with a Mikroe EasyPIC3(? I believe this is the model), I can't remember the IDE I was using but I remember doing everything in assembly and having printed 900+ page datasheets on my desk to reference while programming. I really enjoyed the PIC's and had chose them over the AVR's just because they'd been around longer and I had assumed that would mean more examples and better documentation. Then the Arduino's came out and I referred to them as the "Fisher Price" of microcontrollers, funny thing is that I recently started using them for rapid prototyping because it's easier to have libraries available for controls instead of having to manually write macros for things. I've found I don't have the time to sit there and play with stuff anymore and just need it to work fast so the Arduino/AVR pair has been working better for my adult life than the PIC's would have.
@DesertVox
@DesertVox 4 місяці тому
I went from Arduino AVR to ESP8266 and ESP32. I was considering PIC, but the ESPs were too powerful and affordable, especially with the built-in radio system. That doesn't mean I do not use AVRs. I still do, because of the simplicity and low-power of tiny chips like ATTINY13.
@davidhawley1132
@davidhawley1132 Місяць тому
The ATtiny later series 0,1,2 are very nice too, with the easy to use UPDI flashing interface. I like the 824/1624, but I am doing very generic things.
@KetilDuna
@KetilDuna 5 місяців тому
Really nice video - thank you. I use those buggers with MPASM/Assembler ... you need to download a historical version of MPLAB to have it included. I always tended towards PIC for its peripherals, and the small chips like 12f675 are perfect for smart wires like performing tasks in a radio controlled airplane. After trying similar things with ATTiny85 and full fledged ATMega mcus I have only returned to PIC for those small specialized things.
@KetilDuna
@KetilDuna 5 місяців тому
And just like that I was hooked and wanted back into the game ... but ... mpasm is designed to be really impolite to 64-bit systems. Not sure, but probably a trash can near me is going to be full of PIC mcus really soon. Damn, Microchip has all the tact of Apple supporting diy's and tinkering. I'll have a test run with xc and c, but I think this is over for me as unpaid xc injects tripwire blobs (doesn't "optimize") - also done with upgrading programmers every time someone at Microchip gets the urge for a new one.. goddammit! what a mess... Perhaps RiscV can do something for us?
@lucaelectronic
@lucaelectronic 3 місяці тому
I'm now 19 and learned assembly a few years ago on the stone age version MPLAB IDE 8.10 and it's one of the best working software I have ever known. I tested the IDE X this weekend and it's unusable total junk. I can't understand why they tried to improve something that worked really well and now it's broken
@MattAtHazmat
@MattAtHazmat 2 місяці тому
@@KetilDunaXC8 comes with an assembler- pic-as- really just a renamed mpasm. You can check the output- no tripwires, etc. You don't have to touch the C compiler/optimization at all. Writing a C compiler for the 8 bit pic is pretty hard- it doesn't really fit within the conventions of traditional C. IIRC, the AVR started out as a project to make an 8 bit device that worked well with C. Microchip has a "tradition" of supporting all the way back. Since nobody else was doing it (for free), Microchip had to do it internally. Those programmers wanted to get paid. pic-as supports current parts and back to the PIC16C54! Over 30 years old.
@JustPlainRob
@JustPlainRob 3 місяці тому
I loved PICs about 15 years ago before AVR and others became so ubiquitous, but the MPLab software was so bad I dipped as soon as I found something better. I still have tubes of PICs and a PICkit 3 but I haven't used them in years because it's just such a hassle to set up and program by comparison. Kind of sad that it's easier to solder, connect, and program a 100-pin ATxmega TQFP chip than a 20-pin PIC16F through-hole chip on a breadboard.
@jacobrminor
@jacobrminor 4 місяці тому
To me the biggest benefit PICs bring is the peripherals. Its pretty niche but they have a good selection of MCUs with enough software configurable analog hardware to make voltage and current feedback loops for dc power supplys that run independently of the main cpu, so it can do whatever else it needs in the background. Not many use cases but when you want an i2c controlled dc to dc supply there aren't many options as cheap as PICs
@SineLab
@SineLab 4 місяці тому
I agree, the PIC peripherals are really the biggest selling point.
@UKsystems
@UKsystems 2 місяці тому
I have been working on an Arduino to pic converter and a USB bootloader for pic microcontrollers, nearly ready to share.
@BLOCKsignallingUK
@BLOCKsignallingUK 4 місяці тому
For high level language, consider the MikroElektronika BASIC, Pascal and C compilers (about $200).
@Ben-ht5yf
@Ben-ht5yf 4 місяці тому
PIC's used to be so good, cheap, approachable, easy to learn. But these days, they are become a bit to obscure if you need to learn from scratch, and the programming environment (mplabx) is a nightmare. They are still pretty cheap though
@kronos4993
@kronos4993 3 місяці тому
The Picaxe educational simple basic can be very effective. I now use Mikroe PICBasic quite happily.
@domdom1941
@domdom1941 5 місяців тому
What do you think about the MPlab Code Configurator (MCC)? Personally I dont like it when I have to go into a datasheet just to turn on an LED. Also the Code is not that easy to understand, when you adress the Port Bits directly. I remember that the MCC basically produces finished functions for Digital Output Pins. Such as Toggle(), TurnOn(), and other stuff. The fading led is great and was surprisingly fast made. 😲 If the PIC Software would be more user friendly, PICs would definitely be an alternativ for Arduino and co.
@youtubasoarus
@youtubasoarus 5 місяців тому
As much as this seems to make sense, I think it's more for mass production v. hobbyist level. At the hobbyist level arduinos are far more economical because the programming software is free and don't require an additional programmer. These pro level programmers are wayyyyyyyyyyyyyyyyy too pricey.
@SineLab
@SineLab 5 місяців тому
I agree, those pro programmers are really only within reach for corporations.
@KaradevNetLtd
@KaradevNetLtd 4 місяці тому
@@SineLab with my bootloader system and software for win10+ will not need programmer. just usb cable and C# software for win 10. libs included inside
@KaneBear1
@KaneBear1 Місяць тому
A good program writer and compiler alternative is MikroC from MikroE. It is not free, but for smaller projects you can compile with it. From my expreience, MikroC (for PIC, they have many C based tools) is the best option for PIC. You can have full control, but the advantage of C language, instead of assembly.
@FernandoSantos07
@FernandoSantos07 5 місяців тому
Next video, you can use the code generation tool. It's GUI to choose how to use the pheripherals. Very good tool.
@SineLab
@SineLab 5 місяців тому
I'll take a look at the GUI tool.
@DesertVox
@DesertVox 4 місяці тому
I'm so thankful for the open source nature and user-friendliness of Arduino.
@saduniwathsala
@saduniwathsala 4 місяці тому
@gbulamrasool1610
@gbulamrasool1610 4 місяці тому
Wow good video i like it❤❤❤
@filetdelumiere5037
@filetdelumiere5037 5 місяців тому
Good video. I was interested in the process of using PIC directly instead of Arduino system. In fact, if you plan to make an industrial project PICs are THE solution. But if, like me, you're just an enthusiastic of DIY with development speed in mind, Arduino family is absolutly inbattable.
@SineLab
@SineLab 5 місяців тому
There's not much that can beat Arduino's prototyping speed. :)
@KaradevNetLtd
@KaradevNetLtd 4 місяці тому
@@SineLab we can argue with this, and i am shore that will beat any argument with just one of my simple project with my bootloader system and pcb design ;) be sure about it
@NicksStuff
@NicksStuff 4 місяці тому
You didn't compare the power consumption and minimum circuit design with the ATmel chips. Has one have the advantage?
@colormaker5070
@colormaker5070 5 місяців тому
I have been using pics for 20 years started back when they were OTP or you had to get one pf those UV erasable pics to test. ICE2000 were $1200 each and MPLAB was horrible. I chose assembly language and programing was complicated without extensive commenting. Pic is great for production needs but microchip support for legacy chips is subpar. I still need to use MPLAB 8.92 as most legacy pic16 and some pic18 are no longer supported through MPLAB X. ICD2 and 3 are no longer supported either. ICD4 is buggy. Great information and presentation so I subscribed.
@SineLab
@SineLab 5 місяців тому
Interesting to hear about the lack of support for legacy chips.
@furnoproductions1314
@furnoproductions1314 4 місяці тому
there are some dsPICs that have vectored interrupts which are super whammy and cool
@matthewlewington2470
@matthewlewington2470 4 місяці тому
Iv tryed a few times to get into the PIC space but have had no end of issues with there software. Not to say i wont try again and its not a capbale platofrm, but I do prefure most of my time be spend working on a project and not debugging there IDE.
@brucewoods9377
@brucewoods9377 2 місяці тому
What a totally convoluted system. I think I will stick with my AVRs (Arduino style) and simple C++
@lucaelectronic
@lucaelectronic 3 місяці тому
I would recommend to use the own software for the programmer it works much better then the build in support. And i have fallen in love with the MPLAB IDE 8.1 and assembly for the pics its such a nice language. I have so honestly say it's the best working software i habe ever seen its intuitive to use and really simple and is running on everything :)
@catgirlQueer
@catgirlQueer 4 місяці тому
neat, I got a PIC a little while back in the midst of the silicon shortage when I needed a microcontroller with a lot of IOs (but not a requirement for a lot of oomph, I just wanted a chip to translate PS/2 keyboard codes to my own codes for a homebrew machine), as well as being able to program it with a TL866II+ that I already got for programming flash chips, I set up a small makefile just to avoid mplab entirely :p it gets the job done pretty well, leaving the (in my opinion) more interesting system more time to handle interesting code, while also having a lot of IOs left for potential other interfaces
@catgirlQueer
@catgirlQueer 4 місяці тому
the optimizations stuff is kinda shitty, might fuck around and write an assembler for this instead
@SineLab
@SineLab 4 місяці тому
Nice work avoiding MPLAB :) Assembler seems to be popular with these PICs because of the compiler.
@Codebyakshay
@Codebyakshay 4 місяці тому
Can we program it in python lang ? 😮
@A_Canadian_In_Poland
@A_Canadian_In_Poland 3 місяці тому
This is the first MCU available I have seen in a DIP package that supports USB communication.
@SineLab
@SineLab 3 місяці тому
USB and DIP don't often go together.
@saduniwathsala
@saduniwathsala 4 місяці тому
👍
@mechXplorer
@mechXplorer 4 місяці тому
Brother,which major should i do to become an engineer like you?(mechatronics or electronic)
@SineLab
@SineLab 4 місяці тому
I'm working on an electrical engineering major.
@devrim-oguz
@devrim-oguz 5 місяців тому
The only good thing PICs have is nice peripherals such as USB. I hope they bring these features to the ATmega chips since Microchip bought Atmel…
@SineLab
@SineLab 5 місяців тому
The peripherals really are the PIC selling point.
@samuraidriver4x4
@samuraidriver4x4 4 місяці тому
USB 2.0 is already supported on for example the ATmega32.
@TrickyNekro
@TrickyNekro 4 місяці тому
PICs are great, programmed PIC32 professionally for almost 2 years, apart from years of projects and such I did for me! I mostly work with STM32 now though. I miss the documentation of the PICs, much much more shorted than the chaotic ST ones with sometimes not so great code examples ( which are all in C?!? not C++ ). Still though as always, use whatever works. And I would be lying if I said that I don´t miss the AVR vs PIC wars of the old.
@picklerix6162
@picklerix6162 4 місяці тому
I like STM32 myself and I’m not sure why anybody would want to write firmware in anything but C as it’s way too easy for developers to bloat the code using C++. If you prefer C++, I suggest that you use the Arduino IDE with STM32 support. The libraries are written in C++ but I am not sure how much support for STM32 exists since I normally use STM32CubeIDE for development and debugging.
@boonedockjourneyman7979
@boonedockjourneyman7979 4 місяці тому
Not bad. Break this thing up into several videos in a playlist. That would make this better for inexperienced viewers.
@acf2802
@acf2802 4 місяці тому
"AVR's old rival" is a pretty funny thing to say, considering that PIC bought AVR.
@60pluscrazy
@60pluscrazy 4 місяці тому
I use PIC, learned to remember God every time I click the program button and see the message "Program/Verify Complete" 😂
@zxxvcc
@zxxvcc 3 години тому
I just recently decided to actually get blink running on an old PIC16f877 that's been lying around for years, using the pickit3 that I own. Got it working but yeesh - I had to devise a series of steps to get it actually working powering the PIC. Couldn't get programming to work from MPLAB IDE at all, could get it working from MPLAB IPE if I did an elaborate dance of unplugging and plugging the programmer to get it to send power to the IC ( no idea why). Really crap, but I am just a hobbyist and I guess they make lots of money from people who aren't so ah well. I'll probably not bother with them in future.
@zxxvcc
@zxxvcc 3 години тому
Of course the alternative is to power it separately but I'm used to powering from the programmer, and that's a bit of a faff given it's supposed to support it. Really all the problems are poor quality software.
@Lion_McLionhead
@Lion_McLionhead 4 місяці тому
Surprised how much they jacked up programmer prices after buying Atmel. The free sample program of 20 years ago is the only reason anyone uses PIC.
@guatagel2454
@guatagel2454 4 місяці тому
I use a PIC when I need ultra low power.
@dw6528
@dw6528 4 місяці тому
Is anyone using the mikroC platform? And if so - how would you compare it to the Arduino Eco-System in which there appear to be a significant amount of libraries and pre-made example code files - all one has to do is modify - in order to get them to do what you want. Compare that to the PIC environment in which you are basically creating the wheel from scratch every time you start coding. For me - the development platform that provides the fastest and simplest approach is probably the Arduino platform. Yes - the Arduino platform is limited to Arduino compatible devices. But isn't there an Arduino compatible device which can do pretty much what any PIC can do? Additionally - these devices appear to be coming in smaller and smaller SMD packages. When a device board shrinks down to the size of the Seeeduino XIAO - we're getting pretty close to the foot-print of the classic PIC18F4550 which is still being used as the favored device for PIC learning. Your thoughts?
@hopelessnerd6677
@hopelessnerd6677 4 місяці тому
Microchip bought Atmel, so it's kinda like not making a difference what laundry soap you buy, the same people get the money.
@Sergio-vp1gj
@Sergio-vp1gj 20 днів тому
PIC always works stable for me
@ocayaro
@ocayaro 4 місяці тому
The countless series of PICs is their undoing, I think
@andymouse
@andymouse 5 місяців тому
Thanks great video ! But I am now sure I will stick with AVR, there popularity is due to removing the grimy stuff and you don't end up re inventing the wheel. Anybody who is wondering which way to go I would say the AVR/Arduino eco system is where you want to be...cheers.
@SineLab
@SineLab 5 місяців тому
I agree, AVR is definitely a better place to start.
@KaradevNetLtd
@KaradevNetLtd 4 місяці тому
@@SineLab for kids yes. for industrial and automation home/office/villa/yard pic is 100 better then any sum of atmel mixture :) be sure about it
@picklerix6162
@picklerix6162 4 місяці тому
Somebody gave me a MicroChip red board with a built-in debugger but I have never used it.
@paradiselost9946
@paradiselost9946 9 днів тому
may just be a debugging header. and the 8 pin chips need a special debugging 14pin device to physically debug. took me years to track one down for my favourite pic chip, 12f683... doubt i will ever use it. theres a debug/simulator in mplab anyway... takes some fiddling, but yeah. seems to work.
@HittTheDekk
@HittTheDekk 4 місяці тому
I worked with the Microchip ecosystem during my time studying at university for a degree in Embedded Systems. We called the ICD programmer the "hockey puck." Unfortunately, even with our professor's deep knowledge and decades of experience with MPLAB and the PIC, the programming experience was still very rough compared to a more modern and friendly ecosystem like STM32. More money does not solve the problem of Microchip's terrible software that is MPLAB. The ICD is a nice tool that is very overpriced. My professor often has to heavily annotate the PIC32 reference materials and datasheets with his own errata and corrections to explain the setup and operation of a PIC32MX. I think any new hobbyist getting into microcontrollers should stay far away from the PIC. STM32 is the new "king" of easy to use industrial-grade microcontrollers, but there's lots of other good options out there that aren't Arduino.
@nsfeliz7825
@nsfeliz7825 4 місяці тому
i want a picduino.
@SineLab
@SineLab 4 місяці тому
That would be handy :)
@4thesakeofitname
@4thesakeofitname 4 місяці тому
It's the Arduino-Platform that makes the difference... Not PIC or AVR. I hope uChip will not ruin it.
@fgerhartofsa
@fgerhartofsa Місяць тому
2.3, and 4 are now obsolete and no longer supported by MPLabs
@ivolol
@ivolol 5 місяців тому
Arduino turned AVR into the winner because it removed 1/2 of what is shown as needed in 0:48 edit; even getting through the process of install -> program seemed like a crazy hassle even though you showed it working flawlessly. You need to know buried dropdowns and to copy code from specific boxes as a beginner? Easy to see why it doesn't gain in popularity.
@andymouse
@andymouse 5 місяців тому
Indeed, Great video but I can't be bothered with all that I'll stick with AVR.
@Ramy_Ramz
@Ramy_Ramz Місяць тому
Is a PIC a microcontroller or a microprocessor? I thought it was a microprocessor...
@SineLab
@SineLab Місяць тому
The PIC I showed in the video is a microcontroller.
@Ramy_Ramz
@Ramy_Ramz Місяць тому
@SineLab Yep because it had internal peripherals. That makes sense. Thank you.
@Ramy_Ramz
@Ramy_Ramz Місяць тому
@SineLab Please, is it possible to demonstrate how to connect and program a stepper motor using a PIC? I am working with a PIC16F877A and PIC16F887 for a school project...
@SineLab
@SineLab Місяць тому
Do you have a stepper motor driver IC?
@Ramy_Ramz
@Ramy_Ramz 29 днів тому
@SineLab Yes, we do have stepper motor driver circuits in the college lab. I have an assignment that requires me to control a stepper motor using dip switches. We can use the PIC16F877/PIC16F877A or the PIC16F887 microcontrollers.
@MatheusFP104
@MatheusFP104 4 місяці тому
If god is good to me I will never work with PIC again in my life
@JacklapottTv
@JacklapottTv 26 днів тому
Why ?
@edgeeffect
@edgeeffect 5 місяців тому
I like the look of PIC-32s... I can't be bothered with "lower" PICS (I'm an AVR fanboy and I don't see there being any gains there - just like if you're a PIC fanboy, there's no gains to using an AVR). But PIC-32s seems so attractive because you get all that 32-bit goodness like you'd expect from e.g. an STM-32... but in a DIP package. If you like breadboards, strip or pad board you can get 32 bits without needing to mess around with breakout boards to adapt to SMT. Also I'm an "assembly language pervert" and PIC-32 (unlike the "lower" PICs) uses the MIPS ISA and using a third party ISA means there's loads more reference material available (especially as they love (loved?) MIPS so much in education). Microchip's dev. tools DO completely and utterly stink. But it does seem like there ARE open source options available at least for PIC-32, if not the "lower" PICs
@conorstewart2214
@conorstewart2214 Місяць тому
There is no real reason to go for PIC processors now, especially since they need an expensive programmer. It would be much cheaper and more capable MCUs if you just used a more modern arm or risc-v based MCU.
@microdesigns2000
@microdesigns2000 Місяць тому
You mean for a hobbyist? Sometimes there are excellent reasons for one platform or another.
@mattivirta
@mattivirta 4 місяці тому
i used lot PIC mikrocontroller when i has working ABB automation corporation and we build many custom pump device whit PIC, measure liquid colour, flow meters, erc many custom systems, and other corporation i made many silo controller system whit PIC controller to around world, lot send to england and asian many factory. and home i made motorbike gear display system and pristaltic pum system filled bottles, but later come better programming AVR mikro controller and has lot better easy programmed all codes. fasten and better, ARDUINO have easy way use mikrocontrolelr today. i used first lot PLS siemens simatic, then PIC and then AVR and arduino at work before. home i build flight simulator many many stuff whit arduino, many other automation system hobby workshop. easy and lot better than old PIC or base AVR, use arduino.
@Sergio-vp1gj
@Sergio-vp1gj 20 днів тому
CCS C is easier than mplap
@mechXplorer
@mechXplorer 4 місяці тому
Hi sir, I am from India .I am 12th graduate with Physics Maths and Chemistry. I want to become an engineer. I am also preparing for college. But I want to do bachelor and job in your country. Please help me for scholarship and in universities admission process. I am 19 year old .With my studies I will work with you as an assistant if you give me chance.please help me sir.
@SineLab
@SineLab 4 місяці тому
I'm not sure how you want me to help you. Which part of the process are you struggling with?
@mechXplorer
@mechXplorer 4 місяці тому
Ok sir
@ha13151
@ha13151 4 місяці тому
.
@DeeegerD
@DeeegerD Місяць тому
you're too young for coffee. Good job.
@SineLab
@SineLab Місяць тому
I don't actually drink coffee, it's just the name of the service. :)
@AttilaAsztalos
@AttilaAsztalos 4 місяці тому
Surely, you must be joking. Or else kindly show me the "Arduino" that can re-assign its internal peripheral inputs or outputs to basically any of the physical chip's pins - which some 8-bit PICs definitely CAN do. Or, you know, an "Arduino" with Configurable Logic Cells (CLCs) you can chain any way you wish... or internal-hardware-retriggerable single-shot timers... or built-in modulation peripherals... let's get real - some of the 8-bit PICs are running laps around AVRs, basically pwning them into oblivion.
@SineLab
@SineLab 4 місяці тому
That's what the video said. The hardware is great, but MPLAB is not.
@icarossavvides2641
@icarossavvides2641 4 місяці тому
If you're going to issue a video with such a ridiculous title at least do SOME homework! If PIC's were no good, then how have they survived some forty years? Yes, the MPLAB IDE is a challenge but the CCS PIC C compiler has been around for years as have a few others, there are a number of DIY PIC programmers on You Tube also. I think you'll find that AVR's are fine, up to a point but if you want to do some "grown up" work then you'll find PIC's take over when AVR's run out of functionality and performance. It's not a matter of 'are PICs any good', the uController is chosen to deliver the functionality required within the many constraints of a design, barring functionality, cost and power consumption are usually near the top of the list.
@Hoptronics
@Hoptronics Місяць тому
The CCS PIC C compiler was a godsend. I think I paid for it, back when pirating everything was the norm..
@ami6packs
@ami6packs 5 місяців тому
PICs are trash for hobbyists or for learning purposes. might be good for big corps, but not for entry level companies.
@orides5976
@orides5976 4 місяці тому
It can be trash for lazy people who can't read a datasheet.🙄
@picklerix6162
@picklerix6162 4 місяці тому
Several years ago, I interviewed for a firmware development position at a large HVAC manufacturer. I asked them why they are still using PICs for their latest projects. I think their response had something to do with code leverage. Apparently, PIC developers don’t make very much at that company.
@stevenbliss989
@stevenbliss989 4 місяці тому
Both AVR and PIC uCU are good, but each to specific needs. Remember they are now the SAME company! You open minded policy is what I have, so I agree with you, and I use both depending on the need. BTW I also use Padauk for small projects, and STM32F... for big projects..
@Mike-ry4ti
@Mike-ry4ti 26 днів тому
PIC controllers arent trash, MPLAB is. it takes up an massive amount of space and is complicated to use. Find a way around using MPLAB and all the other software bits and they will be as good as gold.
Shrink Your Projects with ATtiny - Beyond Arduino #5
19:42
Sine Lab
Переглядів 4,4 тис.
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Переглядів 4,6 млн
Піхотинець - про рутину на фронті
00:46
Суспільне Новини
Переглядів 231 тис.
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Переглядів 2,7 млн
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Переглядів 8 млн
Add USB To Your Electronics Projects! - The USB Protocol Explained
15:19
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 361 тис.
#1099 How I learned electronics
19:55
IMSAI Guy
Переглядів 1,1 млн
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 39 тис.
Build Your Own Drone Tracking Radar:  Part 1
20:08
Jon Kraft
Переглядів 413 тис.
I shouldn’t have kept the $1,000,000 computer
28:05
Linus Tech Tips
Переглядів 1,6 млн
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Переглядів 120 тис.
10 awesome application of capacitors in circuits
29:01
Electronic Wizard
Переглядів 336 тис.
Это новые российские SSD! Ну почти… 🙂
1:00
Это новые российские SSD! Ну почти… 🙂
1:00
iPhone 16 - Повернення ДО КЛАСИКИ
9:22
Svidomy
Переглядів 32 тис.