How To – DIY – Projects

PIC12F675 software UART

PIC12F675 software UART (bit banging) code and Proteus simulation

This post provides the software UART (Bit Banging) code for PIC12F675 microcontroller (e-g to connect PIC controller with PC using serial adapter). As we know, PIC12F675 microcontroller doesn’t have built in UART module, so we can create UART functionality in it’s software. This post provides the details of how to program software UART functionality in PIC12F675. This

PIC12F675 software UART (bit banging) code and Proteus simulation Read More »

Schematic rotary switch

How to interpret the direction of rotation from a digital rotary switch with a PIC using PIC16F877A

How to interpret the direction of rotation from a digital rotary switch with a PIC The objective for this Instructable is to illustrate how to interface a digital (quadrature coded) rotary switch with a microcontroller. Don’t worry, I’ll explain what quadrature coded means for us. This interface and the accompanying software will allow the microcontroller

How to interpret the direction of rotation from a digital rotary switch with a PIC using PIC16F877A Read More »

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller

Potentiometers find applications in many electrical devices. For example, a light dimmer uses a potentiometer to control the brightness of lamps. In amplifiers, they are used to control the output volume of the music, or change the bass level. In an adjustable power supply we see potentiometers to vary the output voltage and current. In

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller Read More »

EUSART in PIC

How to configure EUSART in PIC18F4550

Both, Parallel and Serial modes of communication have certain advantages and disadvantages over one another. The serial communication is a preferred option due to its ability of long distance communication with error detection capability. The microcontrollers consist of an inbuilt hardware unit known as USART (Universal Synchronous Asynchronous Reception and Transmission) to facilitate serial transfer

How to configure EUSART in PIC18F4550 Read More »