Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/01/07 12:58
Read: times


 
#130297 - Clickable
Responding to: ???'s previous message
Sriram Sridharan said:
files.dalsemi.com/microcontroller/example_software/ds1620.asm

Please enter the complete URL - including the "http..." bit - so that the forum will automatically make it clickable:

http://files.dalsemi.com/microcont...ds1620.asm

So the original was:
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.
and you changed it to:
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. 

MOV P0,A       ;<<<-------My change made to the original program!! 

So, do you now understand what "LSB" and "MSB" mean?

Do you now understand what is actually in the 'A' register at the point where you added your line? And, thus, can you now see why your extra line writes only the MSB (which contains only the sign bit) to the port?


List of 32 messages in thread
TopicAuthorDate
Problem with DS1620 and 8051!! Please Help!!            01/01/70 00:00      
   Re:Problem with DS1620 and 8051!! Please Help!!            01/01/70 00:00      
   does it work?            01/01/70 00:00      
      Re:Trivial issues..            01/01/70 00:00      
         ds1620 data sheet            01/01/70 00:00      
            Re: ds1620 data sheet            01/01/70 00:00      
               get the basics first.            01/01/70 00:00      
                  Basics - Data format            01/01/70 00:00      
                     Re: Basics            01/01/70 00:00      
                        Re: Basics            01/01/70 00:00      
                           google is your best friend            01/01/70 00:00      
                        No - see below            01/01/70 00:00      
                           RE:see below            01/01/70 00:00      
                              Table 3            01/01/70 00:00      
   DS1620 Data format            01/01/70 00:00      
      Re:DS1620 Data format            01/01/70 00:00      
   What Standard Program?            01/01/70 00:00      
      Standard Program            01/01/70 00:00      
         Clickable            01/01/70 00:00      
            newbie explanation            01/01/70 00:00      
               No, that's wrong            01/01/70 00:00      
               MCT            01/01/70 00:00      
            Have U got it right dude?            01/01/70 00:00      
               YOu may think so            01/01/70 00:00      
               Like, totally un-right Man!            01/01/70 00:00      
               Like, so Incomplete, dude!            01/01/70 00:00      
                  Where is question of completeness            01/01/70 00:00      
                     how can 'u' be complete, look in any dictionary            01/01/70 00:00      
                     Rules            01/01/70 00:00      
                        Thanks Sir. When you got awake?            01/01/70 00:00      
                           You            01/01/70 00:00      
                     Rules of the board            01/01/70 00:00      

Back to Subject List