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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Per Westermark
06/12/12 09:21
Read: 675 times
Sweden


 
#187678 - Time to actually prove your logic and your delays
Responding to: ???'s previous message
Mandeep Singh said:
i have tried all

That is definitely not true. You have not tried "all". You aren't even close to have tried "all". Unless "all" is some new drug I haven't heard about.

reduced the delay

Why have you reduced the delay? Maybe you need to increase it?

The datasheet tells what delays you need - and my earlier post told you how to check the quality of your delay.

So why can you not report back the results of your validation of the delay function?
When you know what the delay does, you can then create (without a digital scope) a delay that fulfills the requirements specified in the datasheet.

refered to the datasheet again and again

What paragraph in the datasheet said that you need to reduce any delay?
What delay does the datasheet say you should have?
What are your actual delays, after having verified the function of your delay function?

but am getting all the time same output

As long as you do the wrong things, you can't expect to solve the problem.

You seem to try random changes. Why not be methodical and check timing, and pin change sequences. Then you can post a check list what things you have verified.

even i have tried to use SPI in MikroC...which didn't work as well..

Which doesn't tell you or us if you actually used the SPI functionality correctly or not.
Or if their code was run at a suitable speed.
Or if it's the correct pins on the processor that interfaces with the correct pins on the memory chip.
Or if ...

i tried to test 24c02 ....i was successful a bit with little problem.

And what is "a bit".
And what is "little problem".
We don't know what tests you performed that you were successful with or what tests you did that you failed with.
We don't even know if what results you saw was consistent with the results you were expected to see.

but, here in this case am not getting any of the output..

And maybe you should not get any output. After all, you haven't shown us that your tests really proves that your program performs the required steps (at a suitable speed) to produce any output.

MikroC compiles the code well

Managing to compile code is irrelevant to if the code is correct or not. It's just a syntax test - the important thing is if the code requests the correct operations from the processor to get the required side effects you want/need.

FYI the result am getting is all the leds glows !!!!!!

We have already told you that if the communication is too fast, then you will see glowing diodes because your eyes aren't fast enough.
The only thing you seem to have tested is to shorten your delays - does that sound like a good solution in case your code is already much too fast?

List of 20 messages in thread
TopicAuthorDate
help me with 93c46 and at89s52---MikroC      Mandeep Singh      06/03/12 16:29      
   What You Need to Do Yourself        Michael Karas      06/03/12 17:33      
      need help - 93c46 using AT89s52 - mikroc      Mandeep Singh      06/09/12 04:59      
         MikroC is unwise choice      David Prentice      06/09/12 09:34      
   help me with 93c46 and at89s52---MikroC      Mandeep Singh      06/09/12 05:01      
      So check without scope - adjust code until testable      Per Westermark      06/09/12 06:04      
         you have now 3 times asked help with 93c46/at89s52--MikroC      Erik Malund      06/11/12 07:36      
            93c46/at89s52--MikroC      Mandeep Singh      06/11/12 10:36      
               my suggestion      Erik Malund      06/11/12 11:27      
               You have already been given suggestions      Per Westermark      06/11/12 11:55      
                  help me with 93c46 and at89s52---MikroC      Mandeep Singh      06/12/12 08:33      
                     Use a proper Compiler      David Prentice      06/12/12 08:42      
                        I wanna, I wanna, I wanna,      Erik Malund      06/12/12 09:15      
                     Time to actually prove your logic and your delays      Per Westermark      06/12/12 09:21      
                        ----thanks all for helping out      Mandeep Singh      06/12/12 10:54      
                           do you REALLY expect ....      Erik Malund      06/12/12 11:29      
                     If you can't get MikroC to work ...      Richard Erlacher      06/12/12 15:25      
                        switching to keil      Mandeep Singh      06/13/12 14:32      
                           Example code on this website      David Prentice      06/13/12 15:05      
                           why, oh why      Erik Malund      06/13/12 18:06      

Back to Subject List