??? 01/12/07 16:29 Read: times Msg Score: -1 -1 Answer is Wrong |
#130730 - Have U got it right dude? Responding to: ???'s previous message |
It was pointed out to U in very first post.
Did U check basic hardware working? Just like in PC I always use POST to check HW. Like at start of main program: mov P0,#00 call delay_1sec mov P0,#0FFh This will light all LEDs for 1sec and turn off. means now HW is OK. Now in the pogram of Urs add a line marked at ** CALL IN_DATA ;Get LSB of temp. MOV R1,A ;Save LSB. CALL IN_DATA ;Get MSB/MSb of temp. MOV R2,A ;Save MSB. ;*****Add line below**** MOV A,R1 ;Get LSB in A ;*********Thats all was required ****** MOV P0,A ;<<<----My change made to the original program!! Eventhough U have miles/kms to get the basics may be U had beginners feel -- I AM ALWRIGHT BUT THE WORLD IS WRONG! |