1. You can now buy finished microcontroller project from us, Check out the Store for the complete list of projects.
  2. Need a custom project, Send us some details about your project. So that we can quote the price for it.

Automatic Room light Controller with Visitor Counter (AT89S52)

Discussion in 'Doubts in My Projects' started by Binu, Jun 2, 2007.

  1. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0

    are you sure this file contain this code
    beacause i have open it with notepad and it contain this:
    PK  6q?6??h? 


    reg_52.PDF???n?0??H??????????8?? Ak%?-=!????
    ?þ?z?$?L????yl???33????x4??u??N??m?7??e<???I\?v"??]*??????l0??????E|?~?f>6??N4??H???6)?{?????x???????#'?J?*????Ä?aJ?TH3F5?????2?R
    T
    vB?q???[P?"?Q?? ??H???-?9??SI`p!??
    aB?8c?!?,=?[A?Tp???Sj?
    SZ ??*A??j???c??o?E?????????TeY??a????\?OO??=5??4?i?[??ELUGg1?D-R?P2?)????4??dY`?rKS??$???iLMG??????
    ?,?i?ql?!!??@rf;
    ??? ??a?4T??8?U???^??B{
    ???$?6j$S????q???%T?2??{ZIN??>M???d???'?:µ?"
    e*????*z~^?k??mE??2nk!us?C??-?
    #??#?Q?????G?Q??6?? ?n?
    t??
    cYB?'??W)?KY;C5d?)??&?j??L???
    ?
    c?lO?
    ?A?K??&vE?
    ???8?S??I8??)xo?=]???O?&Hylp???K??A?s?)???/????u?A??1D4
    TR??W%;T?hP?`5K?%
    ?e??????C
    0H??'?8tN!????\P?????
    iP??+?
    #x?6PK)?~Z7 {? ZO(????x?0P??n]?xhnP???????p???d? ???W?a
    TT?urV?6?)[Q??D?
    PK  6q?6???l? Z
    reg_51.PDF??Mk?@??A?a?)4???X?O??

    b[??|?QC???K?}??V3=??x2??????'YlT?????T??????_F?????S?~HU=??n??y???p~?????'??/?N5??JM??O?y???.????????(Y?Z?S???o??S??p?Q[?PG?p-?6?z?S"C mj?Y???8. ?Wh ???#?3??P04?'?sZ??nEdN("???W ?E?J??v?Ftj??!:?-?jg;?8?d??M??OJ]?i R??Z?C??B??j????Yf?rno7S,w???8????J /??????A`Nc??V??H?qC?3?7./Yx??e,???T??EEm??j)V ???zk?V????EkY?h-?:K?"?3+u*Z???
    Y?????n?????+s??j?E????+??}-D?.??t???????w2?Z??C1?p?W??#}?]???W?R1? S?PK   6q?6??h? 


     ?? reg_52.PDFPK   6q?6???l? Z
     ??H reg_51.PDFPK   p U
  2. Binu

    Binu Administrator

    Likes Received:
    133
    Trophy Points:
    63
    ;----------------------------------------------
    ; Register Declarations for the 8051 Processor
    ; Copyright (c) Raisonance SA, 1987-1996
    ;----------------------------------------------

    ; BYTE Register
    P0 DATA 80H
    P1 DATA 90H
    P2 DATA 0A0H
    P3 DATA 0B0H
    PSW DATA 0D0H
    ACC DATA 0E0H
    B DATA 0F0H
    SP DATA 81H
    DPL DATA 82H
    DPH DATA 83H
    PCON DATA 87H
    TCON DATA 88H
    TMOD DATA 89H
    TL0 DATA 8AH
    TL1 DATA 8BH
    TH0 DATA 8CH
    TH1 DATA 8DH
    IE DATA 0A8H
    IP DATA 0B8H
    SCON DATA 98H
    SBUF DATA 99H


    ; BIT Register
    ; PSW
    CY BIT 0D7H
    AC BIT 0D6H
    F0 BIT 0D5H
    RS1 BIT 0D4H
    RS0 BIT 0D3H
    OV BIT 0D2H
    P BIT 0D0H
    ; TCON
    TF1 BIT 8FH
    TR1 BIT 8EH
    TF0 BIT 8DH
    TR0 BIT 8CH
    IE1 BIT 8BH
    IT1 BIT 8AH
    IE0 BIT 89H
    IT0 BIT 88H
    ; IE
    EA BIT 0AFH
    ES BIT 0ACH
    ET1 BIT 0ABH
    EX1 BIT 0AAH
    ET0 BIT 0A9H
    EX0 BIT 0A8H
    ; IP
    PS BIT 0BCH
    PT1 BIT 0BBH
    PX1 BIT 0BAH
    PT0 BIT 0B9H
    PX0 BIT 0B8H
    ; P3
    RD BIT 0B7H
    WR BIT 0B6H
    T1 BIT 0B5H
    T0 BIT 0B4H
    INT1 BIT 0B3H
    INT0 BIT 0B2H
    TXD BIT 0B1H
    RXD BIT 0B0H
    ; SCON
    SM0 BIT 9FH
    SM1 BIT 9EH
    SM2 BIT 9DH
    REN BIT 9CH
    TB8 BIT 9BH
    RB8 BIT 9AH
    TI BIT 99H
    RI BIT 98H

    J.Binu
    Click here to get free 8051 Codes
  3. Hmdtop

    Hmdtop New Member

    Likes Received:
    0
    Trophy Points:
    0
    hi i want really good project for my collage please offer me some

    Hi thank you
  4. Binu

    Binu Administrator

    Likes Received:
    133
    Trophy Points:
    63
  5. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0
    i am unable to include reg_51.pdf file with the program. i am using keil software to make hex file.but it is giving "SYNTAX ERROR"
  6. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0
    i think there is a problem in keil software can you make available hex file of this project. i need it urgently
  7. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0
    hello,
    why u have not use reset button in this project,
    plz mention connection of 7 segment with the microcontroller,
    is it necessary to use ldr cant we use eye(infra red sensors),
    cant we use command DB instead of DS,
    u are including reg_51 for DS command if i use DB then is there any need to include this file.
    plz reply soon i will be waiting.
  8. Binu

    Binu Administrator

    Likes Received:
    133
    Trophy Points:
    63
  9. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0
    i cant understand purpose of this code in hex2bcd subroutine
    HIGH_BYTE:
    MOV A,#6
    ADD A,R3
    MOV B,#10
    DIV AB
    MOV R3,B
    ADD A,#5
    ADD A,R4
    MOV B,#10
    DIV AB
    MOV R4,B
    ADD A,#2
    ADD A,R5
    MOV B,#10
    DIV AB
    MOV R5,B
    CJNE R6,#00D,ADD_IT
    SJMP CONTINUE
    ADD_IT:
    ADD A,R6
    CONTINUE:
    MOV R6,A
    DJNZ R1,HIGH_BYTE
    MOV B, #10D
    MOV A,R6
    DIV AB
    MOV R6,B
    MOV R7,A
    ENDD: RET
  10. msmuneer

    msmuneer New Member

    Likes Received:
    0
    Trophy Points:
    0
    i cant nderstand purpose of this code in 7 segment display subroutine
    AS10: CJNE R2,#15H,AS11 ;symbol for -
    SETB DIS_A
    SETB DIS_B
    SETB DIS_C
    SETB DIS_D
    SETB DIS_E
    SETB DIS_F
    CLR DIS_G
    RET
    AS11: CJNE R2,#16H,AS12 ;switch off all disp
    SETB DIS_A
    SETB DIS_B
    SETB DIS_C
    SETB DIS_D
    SETB DIS_E
    SETB DIS_F
    SETB DIS_G
    RET
    AS12: MOV SPEED,#00H
    AJMP DISP
Loading...

Share This Page