r/pic_programming • • Mar 24 '25

Complete BLINK in PICAS v3.00 & MPLAB X IDE 6.20

Post image
18 Upvotes

I just refined my BLINK example in PIC Assembly on PIC18F45K50.
Which previously was meant to migrate changes from MPASM->PICAS.

Full source code Project :

https://github.com/thetrung/ASM_BLINK_PIC18F45k50


r/pic_programming • • Oct 10 '24

Anyone have an idea how I can code a timer in PIC18F4550

Post image
15 Upvotes

this is my circuit. Just got in PIC programming. How do I make the 7 segment count from 00 to 99. Any advice or help is appreciated.


r/pic_programming • • Dec 24 '20

Getting Started With PIC uC Programming Tutorial

13 Upvotes

Hi all, I just wanted to share with you this 1-video tutorial for those who are just getting started with PIC microcontrollers programming.

I think you may have come across one of my tutorials on DeepBlue website at least once before. There is a complete list of tutorials out there that have been in the "written" form for +3 years now. And I've just started to convert them to videos as requested by many readers.

I hope you find this tutorial helpful! And excuse me if it's a little bit long. But it'd, hopefully, be a good starting point for many of you. Please, leave me a comment if you've got a question, suggestion, or whatever.

Video Link -> https://www.youtube.com/watch?v=7bZg_GzUbHI


r/pic_programming • • Mar 25 '14

Programming a PIC on Linux Tutorial

Thumbnail
digitalpeer.com
13 Upvotes

r/pic_programming • • Jul 19 '26

Building a 360×480 VGA controller on an 8-bit PIC18F47K42

Post image
9 Upvotes

r/pic_programming • • Mar 06 '19

Microchips compiler and tools are horrible

8 Upvotes

I have been programming micro controllers for about 15 years. The last 6 of them in industry picking up projects left behind by other employees. They have all used PIC micro-controllers. My experience with their tools and compilers have left a extremely bad taste in my mouth.

Compared to GCC or clang microchips pic compiler is absolute garbage. It freaks out about things and doesn't tell you what is wrong. But it points out everything that's not wrong? It can't support C++ on 16/8 bit chips.The compiler also seems to be plagued with backwards compatibility features. Pics also lack a number of basic libraries and while i am capable of creating my own is it really necessary to write 200+ lines of code just to get a UART port working? The I2C bus is BY FAR the hardest to setup compared with all other micro controllers I have used. A library that would take me 2 hours to write and get working for a esp32, nrf , or atmel product takes me DAYS on a standard pic24.

The PICkit is extremely locked down. This prevents me from programming OTA, or from ARM devices or remotely at all over ssh. It provides minimal debugging features ,4BPs, no 3rd party debuggers (IDA-PRO via gdb would be super nice). I guess they want you to pay for more? I would think that you would be making enough money on the 100k+ micro controllers I buy every year to include basic features in your locked down programmers.

Also, the ERRATA says a lot. On all of the pics i have used there has been some fundamental problem with the serial buses that is a huge PITA to debug. I would think that a protocol that has been out for 30+ years would have a template that you could just copy and paste into your silicone.

Yeah sure they are cheap and the specs are good. Once they are working they will probably do so until they decay. But if i can help it i will NEVER use a pic in my designs. They could really improve by being just a little bit more open and maybe providing support for a standards like GCC, JTAG support, and better debugging. Listen to the open source crowd. They are pretty much making free stuff for you to use.


r/pic_programming • • Oct 12 '18

PIC Microcontrollers Programming Tutorials [ Learn Embedded Systems ]

8 Upvotes

https://deepbluembedded.com/pic-programming-tutorials/This is a +100k words series of tutorials! For those who are interested in learning Embedded Systems & Microcontrollers Programming. Assuming the basic level of understanding: electronic circuits, digital logic, and C-Language.

It took me too long to craft these tutorials and I hope it helps. Keep it bookmarked if you're interested. And share it with your network if you find it useful.

By the way, I'm using the Microchip PIC devices for many reasons to which I've pointed out in the first couple of tutorials.

Good luck everybody ^^


r/pic_programming • • May 23 '14

Robust serial library PIC Microcontrollers that will mimic the Arduino serial library. All functions, return types and parameters are made to look like the Arduino programming language

Thumbnail
embedjournal.com
8 Upvotes

r/pic_programming • • Jul 21 '25

Help with schematics

Thumbnail
gallery
7 Upvotes

Hello everyone,

I am working on my first project with a PIC micro controller, and I am having trouble figuring out how to wire the connections for the PICkit 5, could anyone tell me if I did this corretly?

I want to make sure I will be able to program the PIC before i order it.

many thanks!


r/pic_programming • • Apr 10 '17

Complete list of pic microcontroller projects with examples

Thumbnail
microcontrollerslab.com
7 Upvotes

r/pic_programming • • Jan 17 '25

PIC12F675 LED blink with interrupts

6 Upvotes

Hi all, I know this is too 2005 buy here I go: I made a beginner tutorial on how to blink an LED with PIC12F675 and MPLABX+XC8, enjoy and post your questions in here: https://fritzenlab.net/2025/01/16/blinking-an-led-with-pic12f675-and-mplab-x/


r/pic_programming • • Jan 02 '22

C Programming Books?

6 Upvotes

Any recommendations for books to learn C programming?

It’s time for me to move from assembly to C.

I’m old school and like to work from text book. I have some knowledge of asm, I’ve put a few products into production with PIC16’s using asm. I have some very limited and very old knowledge of higher level programming (Algol, FORTRAN) but that’s it.

I’m not an idiot, I don’t want some book that reads as though it’s written for a child. I want a proper text book on C with an emphasis on embedded programming. Something that will take me through from the beginning and that will stay on my bookshelf afterwards as a useful reference.

Any recommendations gratefully received!


r/pic_programming • • Oct 04 '16

Warning for Microchip forum. It emails passwords in plain text!

Thumbnail microchip.com
6 Upvotes

r/pic_programming • • Feb 18 '13

Difference(s) between LATA and PORTA?

6 Upvotes

More generally the differences between PORTX and LATX. What are they? The internet isn't so great sometimes with delivering valuable and concise answers however I'd like to hear from you guys on this.

When to use PORTX?

When to use LATX?


r/pic_programming • • Feb 13 '13

Founding document

6 Upvotes

Hello all. This subreddit is new as of 2/13/13. I ask that you all not post spam or unrelated data here. This is not a place about pictures but PIC microcontroller programming.

Try to help each other out as much as you can. Obfuscation is to be frowned upon. If you don't know say so, rather than leading people around in circles. Clarity and simplicity are important here.

Learn on!


r/pic_programming • • Feb 28 '26

New PIC32 project

5 Upvotes

I´m getting back on programming PICs again, it´s being a while since 5.35 and I wanted to get updated to the newest version (v6.3) but I´ve have seen that there´s also a vscode extension. So knowing how MPLab have worked... is it worth it to move to vscode or stick in MPLab? Also I would also like to kwnow if Harmony works fine (like STM) or stay closer to bare-metal / low-level drivers is better? In this project I´ll use FreeRTOS.


r/pic_programming • • Dec 06 '25

Learning to use MPLAB X IDE V6.25 and programming in assembler

5 Upvotes

Hello everyone!

I'm learning to program PICs! I am new to this and I would like to learn assembler. From what I have investigated, previous versions of MPLAB have changed a little with respect to the compiler used to program in assembler, could you give me information, guides or step-by-step videos that explain how to program in assembler for the PIC16F877A, the compiler of the version that I am currently using is pic-as v3.10

Thank you!


r/pic_programming • • Oct 11 '25

Strange Files in Mplab X Project

5 Upvotes

I had start a new project on Mplab X, using another one as a base.

I did open the file of the old one, to be able to use it as an example for the new. I did not modify it at all.

However, each time i load MplabX, i am running it on Fedora, whenever it opens the actual project, it keeps loading that file, wich is a .c source file. How can i make Mplab X to forget that unwanted source file?


r/pic_programming • • Sep 25 '25

Easily build your Free XC32 PRO Compiler

5 Upvotes

I've made a full auto script to easily cross compile xc32 v4.35 for windows to get all the xc32 pro features for free:
https://github.com/nikisalli/Free_XC32_PRO_Compiler/

just follow the instructions and you're ready to compile all the code you want with all the possible optimizations

all the credits for the original scripts go to https://github.com/ElectricRCAircraftGuy who made the original effort, I just patched the build scripts, fixed some errors and packaged it in a more reproducible build environment.

Enjoy! and fuck microchip :)


r/pic_programming • • Jan 12 '25

Beginner-Friendly PIC16F1455 Development Board

5 Upvotes

I’ve created a beginner-friendly development board based around the PIC16F1455 microcontroller that allows for easy USB programming. With this board, you can simply drag and drop the HEX file directly onto the device for programming. You can find more details and the project files on my GitHub: Biscuit-MCU.

Additionally, I’ve developed a custom drag-and-drop IDE to simplify the programming process. While this IDE is perfect for beginners, you can also use MPLAB for programming by applying a code offset. For those interested in expanding this project, I am working on an Arduino core for the board as well.

If you'd like to learn more or contribute, feel free to join my Discord server: Biscuit-MCU Discord. I also plan to develop a very compact version of the board for breadboard use in the near future.


r/pic_programming • • May 10 '16

Will I get load problems?

5 Upvotes

We are currently using a PIC24FV16KM204 and we have plans to change to a PIC18F46K80 because we have run out of program memory. The current program has a duty load of ~50%.

Does anyone know how much slower an 18F are compared to a 24F and how do the program sizes compare. The 18F program will obviously be bigger because of the 8 bit cpu size compared to the 16 bit size in the 24F.

I suggested a change to a PIC32 but it was denied because of the additional cost.


r/pic_programming • • Jan 10 '16

Lightning detection using AS3935 and PIC18F4520 microcontroller

Thumbnail
microcontroller-projects.com
5 Upvotes

r/pic_programming • • Mar 15 '13

PIC Experiments (Embedded Lab)

Thumbnail
embedded-lab.com
5 Upvotes

r/pic_programming • • Mar 07 '13

MPLAB X 1.70 (now out!)

5 Upvotes