SPI for microcontrollers
In this article we will take a closer look at Serial Peripheral Interface, also called SPI. This is the third and last serial communication module in the PIC16F877A. Previously we have seen UART and I2C, and we discussed how those modules operate. Here we focus solely on SPI; what it ...
How to use interrupts in microcontrollers
In this tutorial we will learn how to use external interrupts in PIC microcontrollers. We will go in depth on how to set it up in hardware, and how to configure it correctly within the program. For the examples we will use microcontrollers from the PIC16F family; in particular the ...
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 computer is more sophisticated due to its multiple components, such as the CPU, memory, and serial interfaces, which are all integrated into a single chip ...