+ Reply to Thread
Results 1 to 8 of 8

Thread: help me AT89S52 micro

  1. #1
    mohlandmine Newbie
    Join Date
    Mar 2008
    Posts
    5

    Arrow help me AT89S52 micro

    how i can interface the 8-channel multiplexer 74HC151 with AT89S52 micro


  2. #2
    mohlandmine Newbie
    Join Date
    Mar 2008
    Posts
    5

    Default

    hi
    where the micro designers

  3. #3
    rushi53 Newbie
    Join Date
    May 2009
    Location
    Pune, India
    Posts
    77

    Default

    Connect Pin 9, Pin 10, Pin 11 of Multiplexer to Any port of Microcontroller
    These are A B C pins of Multiplexer

    Please let me know if you need any help
    Thanks,
    Rushikesh
    www.projectsof8051.com

  4. #4
    mohlandmine Newbie
    Join Date
    Mar 2008
    Posts
    5

    Default

    hi sir,
    very very thanks about your attention
    now iam connected it ,then
    how i can program the micro to generate the A,B and C signals from the micro to make the multiplexer send the byte data to the micro
    when ABC are ooo the D0 data will sent to micro and when ABC are 001 the data of D1 sent to the micro and soon until ABC are 111 the last pin D7 data will sent to micro and repeat again continuaslly,
    how i can do this
    THANKS Mr. rushi53

  5. #5
    rushi53 Newbie
    Join Date
    May 2009
    Location
    Pune, India
    Posts
    77

    Default

    Quote Originally Posted by mohlandmine View Post
    hi sir,
    very very thanks about your attention
    now iam connected it ,then
    how i can program the micro to generate the A,B and C signals from the micro to make the multiplexer send the byte data to the micro
    when ABC are ooo the D0 data will sent to micro and when ABC are 001 the data of D1 sent to the micro and soon until ABC are 111 the last pin D7 data will sent to micro and repeat again continuaslly,
    how i can do this
    THANKS Mr. rushi53
    Hi,
    Do u wish to send the data continuously ?
    I mean without any delay in between
    I will give u sample program

    Suppose u have done connections as below
    Pin A - Port 1.0
    Pin B - Port 1.1
    Pin C - Port 1.2

    Code:
     ORG 0000H
                   JMP START
    
    START          MOV P1,#00H           ;This will turn on D0
                   CALL DELAY
                   MOV P1,#01H           ;This will turn on D1
                   CALL DELAY
                   MOV P1,#02H           ;This will turn on D2
                   CALL DELAY
                   MOV P1,#03H           ;This will turn on D3
                   CALL DELAY
                   MOV P1,#04H           ;This will turn on D4
                   CALL DELAY               
                   MOV P1,#05H           ;This will turn on D5
                   CALL DELAY               
                   MOV P1,#06H           ;This will turn on D6
                   CALL DELAY               
                   MOV P1,#07H           ;This will turn on D7
                   CALL DELAY
    
    HERE           JMP HERE               
                   END 
    And then write the program of delay as per your requirement
    if you don't want to use delay then remove the "CALL DELAY" statements.

    Let me know if you need any more help
    Last edited by rushi53; 28th August 2009 at 05:44 AM.
    Thanks,
    Rushikesh
    www.projectsof8051.com

  6. #6
    mohlandmine Newbie
    Join Date
    Mar 2008
    Posts
    5

    Default

    thanks rushi53
    but is this program affect the micro time where the micro must sense to multi other inputs and do many other jobs?
    and now how i can store the 8 inputs(D0-D7) in the micro ?
    i coonect the 74hc151 output pin to p1.5 and set it in p1.5 register but the micro didn't sense to this

  7. #7
    mohlandmine Newbie
    Join Date
    Mar 2008
    Posts
    5

    Default

    another question mr rushi
    is i must programme by assmblly lang. ? i want to programming with c lang.

  8. #8
    rahul1111111 Newbie
    Join Date
    Aug 2009
    Posts
    2

    Default

    I am doing a project based on this micro - controller. and am not getting the pins 21-33......where an EEPROM is connected with a keyboard.

    plaese help me out.
    Attached Images

+ Reply to Thread

Similar Threads

  1. Flash Memory at AT89S52
    By yratman in forum Micro Controllers
    Replies: 0
    Latest: 30th July 2009, 09:35 AM
  2. Need code for A/D using At89S52
    By divit in forum Micro Controllers
    Replies: 1
    Latest: 21st November 2008, 08:26 PM
  3. Help for build a AT89S52 programmer
    By sirous in forum Micro Controllers
    Replies: 1
    Latest: 10th November 2006, 10:07 PM
  4. AT89S52
    By stigma in forum Micro Controllers
    Replies: 4
    Latest: 14th November 2004, 07:39 PM
  5. AT89S52
    By giaracam in forum Micro Controllers
    Replies: 2
    Latest: 3rd September 2004, 06:27 AM

Tags for this Thread