Interfacing PIC16F877A with transistors (Part 1 of 3)

Most microcontrollers have a limited current sink or current source on the pins, the PIC16F877A is no exception. However, for certain projects you may want...

Connecting PIC16F877A with an LCD screen

In this tutorial we will see what an LCD-screen is, how it works and how it is used. We will continue by connecting it to...

Connecting PIC16F877A with 7-Segment display

In this tutorial we will see what a 7-Segment display is, how it works and what it is used for. We will continue by connecting...

74HC595 Shift Register interfacing with PIC16F877A

In this tutorial, we will discuss how to interface a 74HC595 Shift Register with a PIC microcontroller. The 74HC595 is a popular integrated circuit (IC)...

Connecting PIC16F877A with LEDs

In this tutorial we will explore the concept of connecting your microcontroller with LEDs. This exercise is ideal for beginners who want to gain insight...

Port-based configuration and signal manipulation in PIC16F877A

We need to set certain pins to work as General Purpose Input and Output. To do this, we need to look at the 8-bit TRIS...

Pin diagram of the PIC16F877A microcontroller

For accurate and dependable information, referring to the datasheets provided by Microchip Technology is advisable; these documents can be accessed here. Additionally, a brief overview...

Introduction to the PIC16F877A microcontroller

A microcontroller can be considered as a computing system with similar functionality to a personal computer. However, it is important to note that a personal...

Prerequisits

To make it easier, I assume you have a basic knowledge of the following:

  • Basic circuitry knowledge; such as resistors, transistors, diodes, relays.
  • Basic programming knowledge in C; understand what are functions, operators, data types, and more.
  • Digital electronics, such as logic gates.

On some occasions I will explain it from scratch, but to understand everything, it is best to brush up on the basics so that you can follow the tutorials.

Required Software

For these tutorials we use Microchip’s own software package that includes:

  • MPLAB X IDE
  • XC8 Compiler
  • PICKIT3 programmer/debugger

All the tools can be downloaded at the official website of Microchip Technology

Required Hardware

The full tutorial consists of many different types of electrical components, sensors and actuators. It depends completely on your own project what you need. However, in all cases you will need a Pickit3 tool to install the software and you need at least 1 PIC16F877A microcontroller to install it on.