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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/08 15:20
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#152178 - Methinks you're looking in the wrong place!
Responding to: ???'s previous message
If the code is wrong, and the error Michael Karas pointed out is a very obvious and very serious one, it won't matter whether there's anything wrong with the inards of the chip or not. The wrong code won't work under any circumstances.

If you leave the code as it is, then this

MOV DPH, 0X70 ; high address
MOV DPL, 0X00 ; lower address

won't load the 0x7000 into DPTR, but, rather, will load whatever it finds at 0x0070 into DPH, and whatever's at 0x0000 (probably an 0x02) into DPL. Is that really what you want?

If there's preloaded code that's being clobbered, it's because of oversights like this one, and not some arcane defect in the device.

RE


List of 11 messages in thread
TopicAuthorDate
P89V51RD2 IAP            01/01/70 00:00      
   Sure But Not Sure....            01/01/70 00:00      
      forget the p89v use at89C51rc2            01/01/70 00:00      
         But did you try to fix your source?            01/01/70 00:00      
            this is a good reason            01/01/70 00:00      
               Still a mystery to me...            01/01/70 00:00      
                  I see your point; yet...            01/01/70 00:00      
                     small potatoes            01/01/70 00:00      
                        Methinks you're looking in the wrong place!            01/01/70 00:00      
                           Too quick to blame the tools?            01/01/70 00:00      
                        not the issue            01/01/70 00:00      

Back to Subject List