PIC16F84A LCD interfacing code (using 3 pins only) + Proteus simulation

This post provides the LCD[1] interfacing code using only 3 pins of PIC16F84A microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to make an LED blink with PIC16F84A microcontroller. If you don't then please read this page first, before proceeding with this ...

Read more

Interfacing the AT keyboard.

PC Keyboard Theory The IBM keyboard you most probably have sitting in front of you, sends scan codes to your computer. The scan codes tell your Keyboard Bios, what keys you have pressed or released. Take for example the 'A' Key. The 'A' key has a scan code of 1C (hex). When you press the 'A' key, your keyboard will send 1C down it's serial line. If you are still holding it down, for longer than it's typemat ...

Read more

PIC’ing the MAX5581: Interfacing a PIC Microcontroller with the MAX5581 Fast-Settling DAC

MAX5581 Overview The MAX5581 is a 12-bit, fast-settling DAC featuring a 3-wire SPI™ serial interface. The MAX5581's interface can support SPI up to 20MHz with a maximum settling time of 3µs. This application note presents an application circuit and all the firmware required to interface the fastest line of PIC microcontrollers (PIC18F core) to the MAX5581 DAC. The example assembly program was written specif ...

Read more

Interfacing with The Energy Detective using pic microcontoller

I recently bought The Energy Detective (TED), a pretty inexpensive and friendly way to keep tabs on your whole house’s electricity usage. It’s a lot like having a more featureful version of your utility company’s power meter, sitting on your kitchen counter. It can estimate your utility bill, and tell you how much electricity and money you’re using in real-time. The resolution is pretty good- 10 watts, 1 se ...

Read more

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC16F84A microcontroller. This 24LC64 EEPROM has i2c based interface and PIC16F84A doesn't have any built in i2c modules, so software i2c module is created in the code. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that yo ...

Read more

Interfacing of PIC16F84A with DS1307 (RTC) code and Proteus simulation

This post provides the code for interfacing DS1307 RTC with PIC16F84A microcontroller. This DS1307 RTC has i2c based interface and PIC16F84A doesn't have any built in i2c modules, so software i2c module is created in the code. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know ...

Read more

PC Interfacing a GameBoy Camera using PIC18F4620 microcontroller

PC Interfacing a GameBoy Camera   Here's another past project of mine from a couple of years ago. At that time I was looking for a low-res camera for simple robotics image processing, and all I had experience with was PIC (12, 16, and 18) microcontrollers. So I didn't really get to work on the images real time (not enough RAM or speed, and I could not find any suitable SRAM around at that time). I thin ...

Read more

10 tricks for interfacing to the PIC16C508

Most of the ideas in this chapter can be found on the pages of this website, but just in case you want to go over the capabilities of the '508A, we have brought them together. Quite often when you are programming, the first thing you will run out of is output lines. Many projects need lots of drive lines and if you need more than about 8, you should go to another micro-controller. Don't expect an 8-pin chip ...

Read more

Interfacing VFD with PIC Microcontroller

Vacuum fluorescent display can be a good alternative to a Liquid-crystal displays in some applications. They have a number of advantages over LCD like extended temperature range and excellent contrast in high brightness environment. The main disadvantage is higher power consumption making them less attractive in battery operated devices. In this post I’ll show you how you can use this type of display with m ...

Read more

Interfacing VFD with PIC Microcontroller

Vacuum fluorescent display can be a good alternative to a Liquid-crystal displays in some applications. They have a number of advantages over LCD like extended temperature range and excellent contrast in high brightness environment. The main disadvantage is higher power consumption making them less attractive in battery operated devices. In this post I’ll show you how you can use this type of display with m ...

Read more
Scroll to top