Part 1. Intro to Embedded C Programming with the PIC18F14K50
HTML-код
- Опубликовано: 4 июн 2024
- Due to the popularity of the embedded system tutorials based on Assembly and the PIC10F200, Sergey has put together an embedded systems tutorial based on the C language using the PIC18F14K50. In this introduction tutorial, Josh covers the intent of this tutorial series, emphasizes the importance of Sergey's written tutorials that these videos are based on, before reviewing some of the hardware and software that will be used in the series.
This is a companion piece for the more detailed written tutorial written by Sergey, which you can find here: www.circuitbread.com/tutorial...
0:00 Introduction
0:20 What we're doing in this tutorial series
0:52 Overview of the PIC18F14K50 hardware
1:50 Emphasizing the importance of Sergey's written tutorial
3:31 More about this tutorial series
4:50 The hardware and software you'll need
7:08 MPLAB IDE and XC8 compiler Installation
11:54 Summary
12:36 The toast will never pop up
For electronics tools, tutorials, equations and more check out our site: www.circuitbread.com
And check out our Friends of CircuitBread, who offer special discounts, product samples, resources and more to our users: www.circuitbread.com/friends
CircuitBread is joining the fight to help people more easily learn about and use electronics. With an ever-growing array of equations, tools, and tutorials, we're striving for the best ways to make electronics and electrical engineering topics more accessible to everyone.
Connect with CircuitBread:
Discord ➤ / discord
Instagram ➤ / circuitbread
Facebook ➤ / circuitbread
Twitter ➤ / circuitbread - Наука
Very refreshing to see PIC tutorials amongst all the other types of MCUs out there.
I am using PIC XC8 because Arduino although may get you there faster with lots of different peripherals at some point you are going to have to get your hands dirty and decipher a datasheet and write appropriate code and the friendly Arduino libraries won't troubleshoot for you. I have also found that once you have C down adapting Arduino C libraries for use on PIC is a good resource and starting point.
Thanks sir... I hve been waiting for this series
Thank you very much for starting new series with more powerful PIC. The way you explain tutorials is amazing...👏👏👏
Thank you! I hope the series fulfills your expectations!
I will be following along for the next parts! Great content for engineering students
Awesome! I appreciate your feedback, let me know your thoughts as you're going along. It's always good to hear where we can improve and what portions are useful!
great job! keep it up! thanks for being a mentor and a pillar of the self-learning community!
Thank you! Sergey is such a fount of wonderful information, I love being able to help him share that knowledge with others!
Awesome tutorial
just passing by to say great job, I was really waiting a lot since the pic10f series with the outdated assembly
didn't read the title well
Thanks 👍🙏💯😊
Thanks!
Just got my pieces in the mail :D
Awesome, have fun!
need to go fix the pic10f200 series. after the compiler has been deprecated its impossible to fallow along with the new compiler
I'm looking forward to the series.
On the MicroChip website there are two versions of the DIP PIC
PIC18F14K50-E/P and PIC18F14K50-I/P
Only the first one is currently in stock but the second is restocking shortly. Do you know which one we need or does it even matter?
Great question! For our uses, either one works. The only difference should be environmental standards - one has a wider operating temperature range than the other. If you're just using it in your lab, you shouldn't be even close to the extremes for either PIC.
@@CircuitBread thank you for the quick answer! Yes, just using it in the lab for now. I could not find the answer in their brief datasheet.
Have you explain somewhere what all the pic hardware related terminologies mean? What are all those things you said in the hardware timestamp?
The PICKit 3 or PICKit 4? Is that what you're referring to? Those are different generations of the programmer that is made by Microchip for programming their microcontrollers. The rest of the hardware referenced is rather generic electrical engineering things, like resistors and LEDs, and Sergey lists them out in the written tutorial. If there's a question about those, I'd check out our Circuit 101 series or our LEDs playlist. If I'm misunderstanding the question, let me know how so I can help!
nice
So far, I've only dealt with Arduino and arduino-compatible hardware like ESP32s etc. What would be the reason to learn a new hardware and IDE? Is it really worth it, or should I stick to Arduino as a hobbyist?
Each ecosystem has their own pros and cons. If you're a hobbyist and are more end-result interested versus enjoying the process, well... I'd probably just stick with the Arduino. Arduinos are surprisingly inexpensive, don't need specific programmers (like the PICKit), and some of them are quite powerful. On top of this, there is A LOT of fantastic information and help for Arduinos. That being said, Arduino scales poorly in pricing (buying 1,000+ doesn't see significant price drops like you'd see with an MCU), is not very efficient in its code, is not at flexible on the hardware side, and is missing many features that are needed in "serious" applications. So, pros and cons for each but it sounds like you're probably good with just sticking with the Arduino platform.
Can you tell how to program an ic for user based input , say using up / down buttons?
Like we have to do to set voltages - high , low etc. OR make a video on this.
Yep, we cover that in two different videos, using the MCC and without. You can find the one that doesn't use the MCC here: ruclips.net/video/4dxnhgv2M6M/видео.html
@@CircuitBread thank you for responding. i shall surely look it up.
Interesting, Josh. Although, to be honest, I'm now wedded to STM32s and RP2040s.
A suggestion for the future: a series covering BJTs.
I delved deep into STM32s when I was working toward my MSEE (which I never actually got) and while I liked the platform, PICs were my first MCU love...
BJT specific circuits? Sort of like the op-amp series but with BJTs? I like that idea...
@@CircuitBread Yeah. Don't bother explaining what's happening at an atomic level. We're more interested in how to use them in our circuits. Also, give us a conceptual framework for their use. Too often tutorials gloss over explaining why they're doing what they're doing.
Oh and btw. in germany we have a saying: "Guten Rutsch" (Gooten Rooch for English speakers)
Means roughly "Have a good slide into the new year"
So... Guten Rutsch
Thanks! Guten Rutsch!
If you want to learn C++ buy a Raspberry Pie Pico RP2040, the IDE is free and the chip is about 10 quid and available to buy today it just connects to the USB port and appears as a mass storage device. Gonna enjoy your series though !...cheers.
Interesting! Raspberry Pi's are super fascinating to me but I admit, I always impulse buy one (for nearly each generation, it feels), so I've got like five of them but only use two of them...
I love uCs for for one particular reason. You know by now I'm a mere cable monkey, but i do repairs and stuff. Repairing appliances like Microwaves, washing machines, tumblers and so on aren't really complicated, despite their fancy user interfaces nowadays. If these UI's die or shut down bc of planned obsolescence , you can brew your own. Just beware, building a Wifi enabled Microwave might proof difficult 😛
I used to do this with with relays back in the days, when uCs existed but weren't as accessible as they are today.
Ha! "Why does the microwave keep losing signal right when it starts cooking? So strange..." Laren's (he's the lead designer for CircuitBread) only video was a review the Amazon Alexa microwave and, I think like most people, was fairly underwhelmed by it...