??? 10/06/11 08:09 Read: times |
#184093 - please suggest some idea Responding to: ???'s previous message |
First, read the instructions on posting source code: http://www.8052.com/faqs/120199
Then, go through your code and Comment what you think it's supposed to be doing. Then, step through the code, and see if what actually happens matches what you wanted to happen See: http://www.8052.com/forum/read/169331 Wherever what actually happens does not match what you wanted to happen, you have identified a bug to fix! Before doing any of that, you might want to consider whether it's really a good idea to have great strings of code that just repeat the same set of instructions verbatim - have you not considered using loops...? Do you actually have a design for this code - or have you just thrown it together as you went along? If you don't have a design - eg, a Flowchart - now would be a good time to step back and do that. |
Topic | Author | Date |
Speed control of running light | 01/01/70 00:00 | |
Please insert the legible source code | 01/01/70 00:00 | |
comments | 01/01/70 00:00 | |
please suggest some idea | 01/01/70 00:00 | |
Bad | 01/01/70 00:00 | |
Better to use timer | 01/01/70 00:00 | |
May be better - but not essential | 01/01/70 00:00 | |
Ok that 's fine | 01/01/70 00:00 | |
hw-timers for delays | 01/01/70 00:00 | |
there doesn't seem to be any other tasks | 01/01/70 00:00 | |
Not uncommon to have | 01/01/70 00:00 | |
no, you don't | 01/01/70 00:00 | |
do you have pullups on P0? | 01/01/70 00:00 | |
***__HORRIBLE CODE__*** | 01/01/70 00:00 | |
This Problem Shouts "Use a Table" | 01/01/70 00:00 | |
new tutorial needed | 01/01/70 00:00 |