Analog to Digital Converter (ADC) in PIC Microcontroller

ADC module of PIC microcontroller have usually 5 input for 28 pin devices and 8 inputs for 40 pin devices. The conversion of analog signal to PIC ADC module results in corresponding 10 bit digital number. PIC ADC module has software selectable high and low voltage reference input to some combination of VDD, VSS, RA2 and RA3. In the following example project we will convert analog input to channel 1 to 10 bit digital number with low voltage reference (Vref-) 0v and...

Using Push Button Switch with PIC Microcontroller

Introduction

This article is meant for beginners in the field of microcontrollers. When I started with microcontrollers, as everyone I also need to learn how to interface a switch with microcontroller. Here we use PIC Microcontroller 16F877A and MikroC Pro compiler. This tutorial assumes you have basic knowledge about programming PIC Microcontroller, else you read the article Blinking LED using PIC Microcontroller. Push to On Switch Push to Off Switch In this tutorial we...

Blinking LED using PIC Microcontroller – MikroC

Welcome to the world of PIC Microcontrollers. You are in the right place if you are a beginner in the filed of microcontrollers. MikroC is the best compiler for beginners as it contains built in functions for most of the commonly used tasks. But MikroC is less efficient and the hex file generated will be large size compared to other compilers. So I suggest you to use Hi-Tech C compiler by Microchip after you get familiar with microcontrollers. Note that,...

>