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

Status
Not open for further replies.

dav456

Junior Member level 3
Joined
Apr 22, 2016
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
211
View attachment 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 - - -



Workin in Proteus but showing temperature 00 in real life.
 

Post the Proteus file. Where is ADC reading code ?
 

Provide the link from where you got that project.
 

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…