How to Use Interrupts in PIC16F877A Microcontroller

How to Use Interrupts in PIC16F877A Microcontroller In this tutorial we will learn how to use an External Interrupt in PIC Microcontroller and why/where we will need them. This is a part of the sequence of PIC Tutorials in which we started learning PIC Microcontrollers from scratch; hence this tutorial assumes that you are familiar with how to program a PIC MCU using MPLABX and how to interface an LCD with ...

Read more

PIC12F675 external interrupt code and Proteus simulation

This post provides the external interrupt code for PIC12F675 microcontroller (e-g when you need to control servo motor which has position encoder, with your PIC microcontroller). As we know, PIC12F675 microcontroller has one GP2/INT pin, which can be used to service external interrupts. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' se ...

Read more

Digital Clock using PIC Microcontroller Interrupt – XC8

A Real Time clock (Digital Clock) can be made easily by using Timer 1 of a PIC Microcontroller. The Timer1 module exists in most of the series of PIC, this module can be used to easily implement a real-time clock. Instead of an external real-time clock device like a DS1307, an inexpensive 32.768 kHz watch crystal and two 33 pF capacitors are used to complete the circuit. In this application, Timer1 is clock ...

Read more
Scroll to top