| ??? 05/15/03 14:07 Read: times |
#45509 - RE: only steps i need Responding to: ???'s previous message |
Hallo Waqar,
I assume, you are a nice guy in real life. And it's sad that you have some conflicts with forum. I think, that this is mainly caused by a big difference in experience between you and others. And I believe that you are on the wrong way to develop an application. Please read carefully what Dennis wrote. It's excellent to understand how code is developed. And it's not because you are Pakistani, that you don't get the help you want. It's because it's completety without any sense to give you some written code, BEFORE YOU have developed an algorithmn or flowchart of problem. Believe me, many times it takes more time and energy to understand a ready code, written by someone else, than to write it by yourself. Now you will say, that someone could give you at least some few lines of code. But this would also be without any sense. Even less sense than to give you full code. Because then you will ask for more and more code lines resulting in patchwork without any functionality. First of all, you have to develop a strategy. What is the problem? What cases have to be distinguished? What hardware should be used? Which mcu is well suited? What plausibility checks are necessary? What about needed redundance? Are there certain chips on the market which could help you to save code or hardware? After this analysis have a look at datasheets of all chips you want to use. Check the instruction set of microcontroller. Look for all instructions while keeping in mind your application. How can signal be input to microcontroller? How can interrupts help? How are flags affected by some instructions? And, and, and... It's very probable, that you many times have to change your strategy, not only in terms of software but also hardware. Then, one fine day, after several weeks or even months, after you have found a set of hardware and a (hopefully) good strategy you can begin to program. But first you have to develop a flowchart IN DEATIL with main routines, sub routines, loops, defining variables, look-up-tables, a.s.o. After all this is done, and only then, you begin to write the code. But how YOU want to develop an application is totally different from this. For instance, you feel that you want to input several signals at the same time. Instead of knowing that this is often done via polling operation, you put a question about state machine in forum. Then a question about multi-tasking. Then another question for code. But from your postings an expert can see that, friendly spoken, there is not sufficient development done about strategy, only some stiring in the fog. And everybody knows that giving help, especially writing some code for you at this moment is completely without any sense. You just try to save time by writing code at first, without careful analysis. But this will end in total disaster. There are many forum members who want really help you, who wrote intelligent and hepful replies and which you should read and adapt, equally carefully. Good luck, Kai |



