Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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 - - -

pot2.jpg

Workin in Proteus but showing temperature 00 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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top