May 20, 2016 #1 D 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.
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.
May 20, 2016 #2 P pic.programmer Advanced Member level 3 Joined Aug 19, 2015 Messages 773 Helped 141 Reputation 284 Reaction score 140 Trophy points 43 Activity points 7,531 Post the Proteus file. Where is ADC reading code ?
May 20, 2016 #3 D dav456 Junior Member level 3 Joined Apr 22, 2016 Messages 26 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 211 pic.programmer said: Post the Proteus file. Where is ADC reading code ? Click to expand... View attachment 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?
pic.programmer said: Post the Proteus file. Where is ADC reading code ? Click to expand... View attachment 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?
May 20, 2016 #4 P pic.programmer Advanced Member level 3 Joined Aug 19, 2015 Messages 773 Helped 141 Reputation 284 Reaction score 140 Trophy points 43 Activity points 7,531 Provide the link from where you got that project.
May 20, 2016 #5 D dav456 Junior Member level 3 Joined Apr 22, 2016 Messages 26 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 211 pic.programmer said: Provide the link from where you got that project. Click to expand... I made it.Its not on the internet.
pic.programmer said: Provide the link from where you got that project. Click to expand... I made it.Its not on the internet.
May 20, 2016 #6 P pic.programmer Advanced Member level 3 Joined Aug 19, 2015 Messages 773 Helped 141 Reputation 284 Reaction score 140 Trophy points 43 Activity points 7,531 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.
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.