Posts

Showing posts from July, 2015

Running LED circuit using PIC12F675

Image
This post provides the code to make an Running LED  using PIC12F675 microcontroller. This code is written in C language using MPLAB X IDE with XC8 compiler. This code is intended to be the first step in learning how to use PIC12F675 microcontroller in your projects. You can download this code from the ' Downloads ' section at the bottom of this page. Code : Figure 1 : Running LED Code Simulation Video: DOWNLOAD:   Running LED code using PIC12F675 was compiled in MPLAB X IDE v3.05 with XC8 V1.34 compiler and simulation was made in Proteus v7.10. To download code and Proteus simulation  Click Here

Simple Digital Voltmeter (DVM) using PIC16f877A (Code+Proteus simulation)

Image
  PIC16F877A based volt meter  This post provides a simple digital voltmeter circuit  using PIC16f877A microcontroller. This code is written in C language using MPLAB X IDE with XC8 compiler.  In this post, it is assumed that you know, How to use ADC of PIC16F877A microcontroller.  How to interface LCD with PIC16F877A microcontroller.  Figure 1.   Digital voltmeter using PIC16F877A In this circuit PORTB pins are used to interface LCD with PIC167877A microcontroller . The input to the digital voltmeter is given on the RA0 (or AN0) pin. You cannot feed a 20V signal directly to a PIC microcontroller’s input channel. It is too higher than its operating voltage, and the microcontroller could be damaged. So, first we need a voltage scaler that will scale down the input voltage to the safe operating voltage range of PIC16F877A. It can be achieved by a simple resistor divider network shown in the below Image. Figure:2 Voltage div...

Digital Clock using pic16f877A

Image
Click here  to download the hex file for this project