Friday, 27 May 2016

NULL MODEM WITH LOOP BACK HANDSHAKING

NULL MODEM WITH LOOP BACK HANDSHAKING



A null modem cable for you...try to understand its working...if not i will tell you..start coment

For any question coment below or click here for further information

Thursday, 26 May 2016

TURNING ON AND OFF LED BY USING TIMER 0/1 AND MAKE THE USE OF DIFFERENT MODES OF TIMER

TURNING ON AND OFF LED BY USING TIMER 0/1 AND MAKE THE USE OF DIFFERENT MODES OF TIMER


In this practical we use timer 0 to create a square wave on P1.0 by connecting an LED through resistor also show the waveform on Oscilloscope.
TURNING ON AND OFF LED




Steps:

First of all make your microcontroller active by connecting the crystal from pin number 18 and 19(see in figure 2) 
Set the reset button from pin 9 as shown in figure 3.
Make the controller in working order as show in figure 4, then connect an LED through resistor to pin of port 1.0
Write a program of ON and OFF LED by using timer 0/1 in assembly language.
Burn the assembly language program in microcontroller through universal programmer.
You can see th wave form on oscilloscope.

Circuit Diagram:

TURNING ON AND OFF LED
pic configuration of ATML 89S52

TURNING ON AND OFF LED
Attachment of crystall figure number 2
TURNING ON AND OFF LED
Reset button figure no.3
TURNING ON AND OFF LED
Working condition of microcontroller figure 4
TURNING ON AND OFF LED
LED connection

Assembly Language Program :




ORG 00H
MOV P1,#0FFH
MAIN:MOV TMOD,#01H
MOV TH0,#00H
MOV TL0,#00H
SETB TR0
LOOP: JNB TF0,LOOP
CPL P1.0
CLR TR0
CLR TF0
JMP MAIN




For any question comment below or click here for further information

Wednesday, 11 May 2016

LED Interfacing with 8051 Microcontroller

LED Interfacing with 8051 Microcontroller

 

LED interfacing is the main thing, one would attempt to do while beginning with any microcontroller. So here in this instructional exercise we are going to interface a LED with 8051 microcontroller, and will compose a C Program to flicker the LED. We have utilized an extremely prevalent microcontroller AT89S52, of 8051 family, by ATMEL. 

Before really expounding, we ought to get some short thought regarding microcontroller AT89S52. It is 40 pin microcontroller, and has 4 ports (P0,P1,P2,P3), every port have 8 pins. We can consider every port as 8 bit register, from the product perspective. Every pin having one Input/yield line, implies each pin can be utilized for contribution and additionally for yield, i.e. to peruse information shape some gadget like sensor or to give its yield to some yield gadget. Some pins have the Dual usefulness, which has been said in section in Pin Diagram underneath. Double practically like for intrude on, counters, clocks and so forth.

 Circuit Diagram :




Code:






// C Program for LED Interfacing with 89S52 8051 Microcontroller
#include <REGX52.h>
delay(unsigned int y)
{
    unsigned int i,j;
    for(i=0;i<y;i++)
    {
        for(j=0;j<1275;j++)
        {
        }
    }
}
main()
{
    while(1)
    {
        delay(100);
        P1_0 = 0;
        delay(100);
        P1_0 = 1;
    }
}

ASSEMBLY LANGUAGE PROGRAM :

ORG 00H
MAIN: MOV P1,#0FFH
LOOP1: CPL P1.0
DELAY:DJNZ R1,DELAY
DJNZ R0,DELAY
JMP LOOP1

END



For any question coment below or click here for further information