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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/06/06 18:10
Read: times


 
#129085 - Yes, it looks like that.
Responding to: ???'s previous message
The hardware problem doesn't explain his statement:

Priyanka Gupta said:
"... and using same program and only define : unsigned int xdata buff[BUFF_SIZE] = {'P','R','I','Y','A','N','K','A'};

Then it displays all characters right . Output is : PRIYANKA

And i dont understand why only takes int (datatype) to display right characters and why not with char datatype ... "


This wouldn't happen with a hard-stuck address line, would it? If so, the simulation using data type int should have revealed why as well, shouldn't it?

Since we don't have physical evidence, we can't claim it's faulty construction technique, and since we don't have evidence, we can't claim it's defective components.

If he had an oscilloscope, he'd already have seen that the LSB of the low address byte doesn't change at the correct rate if that were the case. If he had a single-step circuit, he'd have measured address line voltages in a static state and found the fault in that way. However, the problem he states is associated, in some way, with the HLL he's using. If we had a look at the ASM output from his compiler, that might shed some light. The 'C' code will only be helpful to someone who knows exactly what the MCU will do in response to it. One possible explanation for the correct result using int and the incorrect one using char is a stuck address line. One possible explanation is that, using int, it would write two bytes to the SRAM, isn't that right? It's unclear how he's handled the writes to SBUF when he's using int data type.

That's why I think it should be examined using ASM and not 'C'.

I'm questioning, not the conclusion, but, rather, the method in attaining it. I think one should remove all the factors that introduce ambiguity. The HLL compiler potentially is one such factor.

RE


List of 54 messages in thread
TopicAuthorDate
SRAM HY62256 interfacing            01/01/70 00:00      
   i think your address line A0 is stuck            01/01/70 00:00      
   Sram            01/01/70 00:00      
      Stuck            01/01/70 00:00      
      Common Errors in Memory Systems            01/01/70 00:00      
   How to post code            01/01/70 00:00      
       How to post code            01/01/70 00:00      
         Read the instructions!            01/01/70 00:00      
         how did you check them?            01/01/70 00:00      
         Checks            01/01/70 00:00      
            Schematic            01/01/70 00:00      
               no problem with hand-drawn schematics            01/01/70 00:00      
                  how to attach schematic which are in pdf format            01/01/70 00:00      
                     How to post code and Schematics            01/01/70 00:00      
                  my home page            01/01/70 00:00      
                     Your Home Page!            01/01/70 00:00      
                        exactly!            01/01/70 00:00      
                     Schematic Diagram as attachment            01/01/70 00:00      
                        Read the instructions!            01/01/70 00:00      
                           schematic problem            01/01/70 00:00      
                              link will be........            01/01/70 00:00      
   schematic pdf link            01/01/70 00:00      
      Schematic of SRAM with 8051            01/01/70 00:00      
         Capacitors?            01/01/70 00:00      
            where capacitor is used???            01/01/70 00:00      
               decoupling capacitor            01/01/70 00:00      
                  decoupling capacitor ??            01/01/70 00:00      
                     i have seen your profile            01/01/70 00:00      
                        It seems to have changed            01/01/70 00:00      
                     At the IC            01/01/70 00:00      
                        have a look            01/01/70 00:00      
                           Erik by god it is recently changed!            01/01/70 00:00      
   I think Neil is asking            01/01/70 00:00      
   Isn't this a 'C' problem rather than a RAM problem            01/01/70 00:00      
      Really?            01/01/70 00:00      
         code tested at simulator            01/01/70 00:00      
            So it's a hardware fault            01/01/70 00:00      
               Hardware tested            01/01/70 00:00      
                  answer to "why":            01/01/70 00:00      
                     but dont forget to put pull ups its port 0!            01/01/70 00:00      
                        for the test - yes, sure, sorry, I forgot            01/01/70 00:00      
                  "Hardware tested" and who gives a hoot            01/01/70 00:00      
                  Tested?!            01/01/70 00:00      
            it's the HW then            01/01/70 00:00      
         Yes, it looks like that.            01/01/70 00:00      
            Oh no it doesn't!            01/01/70 00:00      
               first of all, let me be clear ...            01/01/70 00:00      
                  not just stuck-at            01/01/70 00:00      
                     Good point!            01/01/70 00:00      
                        Let's give him credit ...            01/01/70 00:00      
                           yes it would, look here            01/01/70 00:00      
                              typo            01/01/70 00:00      
                              defective parts            01/01/70 00:00      
                                 if you look inside ...            01/01/70 00:00      

Back to Subject List