Interfacing16X2 LCD with PIC Microcontroller

In this session we will see how to interface 16×2 LCD to PIC18F4550 microcontroller which is of family PIC18F. You can get information of 16×2 LCD in the session How to Interface 16X2 LCD with 8051 Microcontroller Features of PIC18F4550: PIC18F4550 belongs to the PIC18F family; PIC18F4550 is an 8bit microcontroller and uses RISC architecture. PIC18F4550 has 40 pins in PDIP (dual in line package) and 44 pin ...

Read more

Interfacing with UART of PIC microcontroller

This post provides the solution for using the PIC controller UART interface (e-g to connect PIC controller with PC using serial adapter). Complete code and simulation can be downloaded from the 'Downloads' section at the bottom of this post. The following figure shows the result of simulation of PIC UART in Proteus7.6. In the main function UART is intialized by calling the function InitUART (defined in the ...

Read more

Interfacing DS1307 to PIC Microcontroller with C code and Circuit Diagram

This tutorial will help you to interface DS1307 RTC with PIC16F877 Microcontroller. The project is compiled in CCS Compiler and simulated with Proteus. The Real Time Clock is interfaced with PIC controller via I2C. I2C is a 2 wire communication protocol. I2C is used for moving data from one device to another simply and quickly. It is a serial, synchronous, Bi-Directional protocol, the data is synchronised   ...

Read more

Major Electronic Peripherals Interfacing to Microcontroller 8051

Interfacing is one of the important concepts in microcontroller 8051 because the microcontroller is a CPU that can perform some operation on a data and gives the output. However to perform the operation we need an input device to enter the data and in turn output device displays the results of the operation. Here we are using keyboard and LCD display as input and output devices along with the microcontrolle ...

Read more

Lecture 43 : Interfacing PIC16F877 Microcontroller with an LCD

Aim To interface LCD (Displaytech 162A) with PIC16F877microcontroller and to display "IITK" in the Liquid Crystal Display (LCD). Components/Softwares MPLAB IDE (PIC microcontrollers simulator) PIC BURNER 3 with software to load the code LCD (Displaytech 162A) Computer System with Windows operating system and RS 232 cable PIC16F877 Microcontroller +5V D.C Power Supply Resistors - 10K Ω-1,50Ω-1 Capacitors - 2 ...

Read more

Interfacing Relay to Microcontroller

Figure 1 shows the basic relay driver circuit. As you can see an NPN transistor BC547 is being used to control the relay. The transistor is driven into saturation (turned ON) when a LOGIC 1 is written on the PORT PIN thus turning ON the relay. The relay is turned OFF by writing LOGIC 0 on the port pin. A diode (1N4007/1N4148) is connected across the relay coil; this is done so as to protect the transistor f ...

Read more

Lab 4: Interfacing a character LCD using PIC16F688

Description HD44780 based LCD displays are very popular among hobbyists because they are cheap and they can display characters. Besides they are very easy to interface with microcontrollers and most of the present day high-level compilers have in-built library routines for them. Today, we will see how to interface an HD44780 based character LCD to a PIC16F688 microcontroller. The interface requires 6 I/O li ...

Read more

Interfacing of PIC12F675 with (i2c based) 24LC64 EEPROM (code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC12F675 microcontroller. This 24LC64 EEPROM has i2c based interface and PIC12F675 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

Matrix Keypad interfacing with PIC microcontroller.

Matrix keypads are very useful when designing certain systems which needs user input. These keypads are constructed by arranging push button switches in rows and columns as shown in Fig.1. Scanning keypad to detect pressed keys involves several steps and there are several methods to achieve this. The method presented here is capable of detecting more that one key press at time and encode that information in ...

Read more

PIC12F675 LCD Interfacing Code and Proteus Simulation

This post provides the LCD[1] interfacing code using PIC12F675 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 PIC12F675 microcontroller. If you don't then please read this page first, before proceeding with this article. PIC12 ...

Read more
Scroll to top