+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Junior Member level 3
    Points: 147, Level: 1

    Join Date
    Apr 2016
    Posts
    26
    Helped
    0 / 0
    Points
    147
    Level
    1

    8051 Digital Thermometer Working in Proteus but not working in real life.

    pot2.BMP

    Code:
    org 0000h
    mov p1,#0FFh
    
    mov p0,#0000h
    Back:setb p3.6
    clr p3.5
    mov r3,#255
    loop:  	djnz r3,loop
    setb p3.5
    here:	jb p3.4, here
    clr p3.6
    
    Delay:mov r0,#08
    loop2:mov r1,#255
    loop1:djnz r1,loop1
    djnz r0,loop2
    acall Temp_Display
    ljmp Back
    
    
    
    
    Temp_display: 	mov a,p1
    mov b, #010
    div ab
    swap a
    add a,b
    mov p0,a
    ret
    end
    Workin in Proteus but showing temperature 00 in real life.

    - - - Updated - - -

    Click image for larger version. 

Name:	pot2.jpg 
Views:	12 
Size:	214.7 KB 
ID:	129160

    Workin in Proteus but showing temperature 00 in real life.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: 8051 Digital Thermometer Working in Proteus but not working in real life.

    Post the Proteus file. Where is ADC reading code ?



    •   AltAdvertisement

        
       

  3. #3
    Junior Member level 3
    Points: 147, Level: 1

    Join Date
    Apr 2016
    Posts
    26
    Helped
    0 / 0
    Points
    147
    Level
    1

    Re: 8051 Digital Thermometer Working in Proteus but not working in real life.

    Quote Originally Posted by pic.programmer View Post
    Post the Proteus file. Where is ADC reading code ?
    POT 2.zip

    What do you mean by ADC reading code?
    I posted the assembly language program.Is this ADC reading code a separate thing?



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: 8051 Digital Thermometer Working in Proteus but not working in real life.

    Provide the link from where you got that project.



  5. #5
    Junior Member level 3
    Points: 147, Level: 1

    Join Date
    Apr 2016
    Posts
    26
    Helped
    0 / 0
    Points
    147
    Level
    1

    Re: 8051 Digital Thermometer Working in Proteus but not working in real life.

    Quote Originally Posted by pic.programmer View Post
    Provide the link from where you got that project.
    I made it.Its not on the internet.



    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: 8051 Digital Thermometer Working in Proteus but not working in real life.

    Maybe problem is with hardware and not code. As code is working in Proteus I guess code is fine. Check hardware connections one at a time.



--[[ ]]--