Part 2. Our First Program - Embedded C Programming with the PIC18F14K50
HTML-код
- Опубликовано: 22 май 2024
- Any microcontroller or embedded system has its equivalent of a "Hello World" program, which is a blinking LED. With the PIC18F14K50, we go through the MPLAB X IDE, the programmer, how to provide power to your project, and overall just go through every single step necessary to actually get the MCU working the way it should. We hope you enjoy this embedded systems tutorial using Microchip's PIC as an example!
This is the accompanying video tutorial for the more detailed written tutorial written by Sergey, which you can find here: www.circuitbread.com/tutorial...
0:00 Introduction
1:08 Reviewing the schematic diagram and physical setup
3:38 Setting up a project in the IDE
6:40 Creating the program itself
8:05 Configure project and review the program
14:59 Get the power for the project setup
16:48 Getting the clock setup
18:00 Prepping and uploading the code
19:30 Project working and homework assignment
20:17 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 - Наука
Thank you very much... Big like for this effort and waiting for longer programs using as much as PIC features. 👏👏👏
You're welcome! I'm also way behind Sergey on the written tutorials - if you don't want to wait for me to finish the video tutorials, you can see the tutorials these are based on here: www.circuitbread.com/tutorials/series/embedded-c-programming-with-the-pic18f14k50
@@CircuitBread
Thank you, I'll check it for sure...
Every RUclips instructor should watch this video outline and use it as a gold standard.
Used to use the Arduino ecosystem. Very reliable, great online resources and a wide range of easy accessible libraries to communicate with loads of hardware.
My first project was a tiny weather station based on a BMP150 barometric sensor and a DHT11 hygrometer. I planned to use it to control an irrigation system during droughts in a collab garden project. Unfortunately it didn't see any use there but i kept the skills. Now i know when ever a household appliance gets a hiccup i can replace it's brain and make it do it's job again or even extend the functionality.
I just drifted off into a daydream where i control my washing machine with a python script from a terminal window.
Then i realized that if i ever want to date some one in a serious fashion and then have to explain the how the washing machine works, i end up...
🤪
I'm familiar with those daydreams...
The words you were looking for is... "using VOID.. doesn't give a RETURN VALUE.."
AMAZING well put together video.
I'm a err, well-seasoned tech now just learning to code. Thanks for explaining it line by line.
Like button smashed.
Thanks! We have until part 5 to guide you..
Very good
Cool, I used a PIC16F1822 in college with a SNAP programmer. I still have everything my professor gave us everything for free during COVID
Nice! That sounds like a good professor.
EXCELLENT
It may sound weird, but I bought pic16f18854 (the lowest one from the family). I used a different programming tool (Snap) but this video helped me a lot. Thank You!
Awesome, glad it helped! Maybe we need to be clearer that these tutorials are specific to a few PICs but most concepts should apply to any PIC and programmer. I always struggle with messaging...
I'm using the same 16F device the Config Bits tripped me up when comparing to the 18F device.
@@bruceknipe6255 I just skipped configuring some bits. And it surprisingly worked.
Hello circuitbread, I have access to the PIC18F4 series of microcontrollers where I live, can I follow this course with those kind of controllers or should I try to reach out and get hands on the one you are using?
There may be minor differences in the pins used and certain peripherals but, particularly for these first tutorials, there shouldn't be a much of a difference if you're using a different MCU within the 18F series. As the examples get more complicated, I would anticipate a higher chance of needing to make modifications to make it work for your chip but that's not necessarily a bad thing. While frustrating, it'll force you to delve deeper into the chips and gain a deeper understanding. So, that's up to you!
Hi! I have a question. I already tried so many different things and none of them work but when I write the code LATCbits.LATC0 ^= 0x01; my mplab doesn't recognizes the LAT instruction. Can someone help me out?