PIC microcontrollers are one the popular and basic microcontrollers and are suitable for small projects and products. Based on importance and usability, I started this series of tutorials on ‘Learning PIC Microcontrollers Programming in C’. This series will cover from A-Z to learning both PIC microcontrollers and programming in an easy way. In this chapter, I’ll cover all the necessary things you need to gather including hardware and software. So let’s start!

Disclaimer:

Advertisements

Remembering Chapter1:

In Chapter 1, we have learned all the basic knowledge we need to learn before starting microcontroller programming. If you missed it, please read it from the following link.

Learning PIC Microcontrollers Programming in C: Chapter 1

Requirements to have to start microcontroller programming:

There are two types of things you need to start practicing microcontrollers. Both software and hardware.

The software you need:

  1. A compiler is the main software you need to write code and generate Hex files. Now you may ask why a compiler is needed. Well, that is a different theory. We write in different languages such as C, C++, Assembly, Basic, etc but the microcontroller does not understand these. It understands only the hex command. And a compiler does the job for us generating a Hex file which we can load to the Microcontroller, then it can work.

2. Besides this, a simulation tool such as Proteus we can use although it is not mandatory but it’s really important to simulate before we kill ourselves finding out the problem of why the microcontroller is not working as we coded.

Besides these two software, we do not need anything for now. But for special purposes, we will use different software later on.

Hardware:

  1. A microcontroller itself which we will use to practice and work.
  2. A programmer or burner to burn or upload the .Hex file to the microcontroller
  3. A project board, some connection cables
  4. A crystal oscillator, some resistors of 10K & 1K, LEDs and etc depending on the circuit diagram
  5. And of course, a power supply which can provide 5V at least. Such as the USB itself.

These are the basic need to work with a microcontroller and based on the different diagrams, different components will be needed.

But, the good news is to learn the basic programming, we do not need all these right now. We can simulate our circuit until the code is working well. So we can use the simulation tool, Proteus ISIS for this purpose.

Software installation:

Compiler:

There are many compilers for PIC microcontrollers. Here as I’ve been using mikroC pro for PIC for a long time (since 2010) so I’ll suggest this compiler to use also I have the license for this mikroC pro for PIC. If you can buy it, it’s better for the future but if you can’t then it’s also ok to use it. The only limitation will be the size of your code. But for learning, it’s enough I think.

Simply install it to C dive and we do not need the PICFLASH or CodeGriip for now. So simply install the basic software for now. After installation, you can run it. But right now, no need to do any Ph.D. on it. We can learn individual sections later on when needed.

Simulator:

For simulation, Proteus ISIS is the best. But as this software is very expensive, you may not be able to buy it. In fact, very few people buy its license. If you search a bit, you can find links to download it from different sites. Also, you can download it from here.

After downloading the file, check the instruction inside the folder and follow them.

Now you are all set to go to start practicing, but besides you should collect one microcontroller at least and a programmer.

The hardware you can collect now:

MCU section:

You can collect a PIC microcontroller of lower series. PIC12F675, PIC16F676, PIC16F690, PIC16F877A, PIC16F76, and PIC16F73 are the most common ones. You can collect some of them or at least one of them. If you collect only one, then it’s better to collect PIC16F877A where you can get most features and pins.

Programmer section:

For programming, PICkit2 is the easiest option. But you can collect QL programmer, TL866 programmer, and so on.

Accessories:

A project board and some cables and components that you can collect. Also a power source, please.

That’s all for preparation and also for this chapter. In the next chapter, we’ll start making our first project and will start working with microcontrollers. See you soon.

Read more on:

For Professional Designs or Help:

Loading

MKDas

Mithun K. Das. B.Sc. in Electrical and Electronic Engineering (EEE) from KUET. Senior Embedded Systems Designer at a leading international company. Welcome to my personal blog! I share articles on various electronics topics, breaking them down into simple and easy-to-understand explanations, especially for beginners. My goal is to make learning electronics accessible and enjoyable for everyone. If you have any questions or need further assistance, feel free to reach out through the Contact Us page. Thank you for visiting, and happy learning!

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *