??? 08/06/11 12:29 Read: times |
#183232 - How do you think that will help?? Responding to: ???'s previous message |
Maunik Choksi said:
Now I modified the delay routine So you changed this: delay() //delay routine { unsigned char dly2; dly2 = 0x100; //0x20 while(dly2 != 0x00) --dly2; } To this: delay() //delay routine { for( dly2 = 0; dly2 < 12; dly2++ ); } Did you actually read my post? I said:
How have you proved that this produces - and will always continue to produce - the correct delay in accordance with your device's timing requirements?
http://www.8052.com/forumchat/read/183229 The same question applies to your modified routine! Did you follow the links that I gave? Here they are again: http://www.8052.com/forum/read/182476 http://www.8052.com/forum/read/162556 Do you understand the intrinsic flaw with writing delays in a HLL? Now can any tell me the mistake in this code. What debugging and testing have you done yourself? Have you run it in Simulation - either "manually" (using pencil & paper), or in a simulator application? See: http://www.8052.com/forum/read/169932 And: http://www.8052.com/forum/read/169325 And: http://www.8052.com/forum/read/169331 Here are some more debugging tips & techniques: http://www.8052.com/faqs/120313 http://www.techonlineindia.com/article/0...anner.aspx |
Topic | Author | Date |
Driving HT16K33 using 89S52 | 01/01/70 00:00 | |
How to post legible source code | 01/01/70 00:00 | |
HLL Delay Routines - beware!! | 01/01/70 00:00 | |
modified code | 01/01/70 00:00 | |
How do you think that will help?? | 01/01/70 00:00 | |
some comments on code | 01/01/70 00:00 | |
testing of new code | 01/01/70 00:00 | |
HLL Delay Routines | 01/01/70 00:00 | |
one thing | 01/01/70 00:00 | |
CY in C ? _NOT_ | 01/01/70 00:00 | |
I'll use new code. | 01/01/70 00:00 | |
Getting success | 01/01/70 00:00 | |
one modification | 01/01/70 00:00 | |
For How Long? | 01/01/70 00:00 | |
No need to use that instruction | 01/01/70 00:00 | |
Start by caring about the C standard | 01/01/70 00:00 | |
Learning the 'C' programming language | 01/01/70 00:00 | |
C Language Supports No Carry Bits | 01/01/70 00:00 | |
Talking to HT16K33 | 01/01/70 00:00 |