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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/21/11 08:01
Read: times


 
#182316 - Debugging time!
Responding to: ???'s previous message
Vijay Singh said:
programs work (sic?)with 89c51 IC.

What, exactly, do you mean by that?

Have you exhaustively tested over all possible operating conditions and all scenarios - thoroughly measuring all parameters and confirming that they are within specifications?

Or have you just tried it in just one IC, and not noticed any issues?

If all you've done is just tried it in just one IC, and not noticed any issues, then it is entirely possible that your code (and/or hardware) has latent bugs that just don't happen to show up in the limited contitions under which you've tried it.

does'nt work correctly in 89s51 IC

In what way(s), exactly, is it not "correct"?

Software doesn't work in an IC alone; you also need external hardware - so you might (also) have (a) hardware issue(s)...

Again, how thoroughly have you really tested (not just "tried") it?

I am not able to figure out the problem.

The most likely is that you are relying upon some thing - or things - that differ between the two ICs, and/or are present in one but not the other.

In particular, look out for registers which have some bits used in one chip but not the other:

If you write to an unused bit in one chip, that might not cause an issue; but, if the other chip does use that bit, there could be an issue;

If you don't properly mask-out an unused bit when you read a register in one chip, that might not cause an issue; but, if the other chip does use that bit, there could be an issue;

etc,...

I read there datasheets but could'nt find why it happens

It'll take more than a quick read.

You will need to go through the two datasheets, side-by-side, with a fine-toothed comb very carefully checking for every difference.


i cannot post the code here.

Then you're going to have to debug it yourself!

http://www.8052.com/faqs/120313

List of 16 messages in thread
TopicAuthorDate
programs not working in 89s51            01/01/70 00:00      
   Debugging time!            01/01/70 00:00      
      Tip            01/01/70 00:00      
   migration document            01/01/70 00:00      
      Up Counter            01/01/70 00:00      
         And what do you deduce from that?            01/01/70 00:00      
            read or write            01/01/70 00:00      
   Have you really read the datasheets??            01/01/70 00:00      
   .            01/01/70 00:00      
      Don't be too hasty to blame the ICs...            01/01/70 00:00      
      an answer in the form of an anecdote            01/01/70 00:00      
   ..            01/01/70 00:00      
      Yes, you are!            01/01/70 00:00      
      Tolerances            01/01/70 00:00      
         It will be embarassing            01/01/70 00:00      
            Thanks friends...            01/01/70 00:00      

Back to Subject List