Wednesday, July 31, 2013

Interfacing PIR sensor with AT89s52

    Today,I am going to tell you about the technique of interfacing Passive Infrared Sensor (PIR) with AT89s52 MCU (a microcontroller from 8051 family) with a detailed description about this sensor. This is an easily available sensor and figure of this sensor

Saturday, July 27, 2013

LCD interfacing in 4 bit mode using AT89s52

   Today I am going to make you learn to interface LCD(based on HD44780 LCD controller) in four bit mode using AT89s52 MCU. First, I will tell some basic knowledge about 16*2 LCD, then I will go with all the process required while interfacing this device with MCU. This paper will provide all the knowledge required like sending command , sending data which is required to display and reading data from display

Friday, July 26, 2013

Reading Data From 16*2 LCD using AT89s52

     In this paper I am going to show the technique of reading data from HD44780 based LCD in 8 bit mode using AT89s52 microcontroller.

figure a:- Pin Layout of 16*2 LCD
The pin configuration of LCD is shown in figure a.

Eight data pins D0-D7 are connected with any one port of AT89s52 microcontroller. Three control pins of LCD i,e RS, RW and EN are connected to any three pins of MCU(Microcontroller unit). In this example, I am connecting the data pins of LCD with PORT2 of MCU and the control pins are connected with first three pins of PORT1 of MCU.