??? 07/23/11 13:25 Read: times |
#183000 - Do *not* use 'for' loops for delays! Responding to: ???'s previous message |
Maunik Choksi said:
delay() { unsigned char dly1,dly2; dly1 = 0x7f; while(dly1 != 0X00) { dly2 = 0xff; while(dly2 != 0X00) --dly2; --dly1; } } See: http://www.8052.com/forum/read/182476 Also see http://www.8052.com/faqs/120199 for instructions to post legible source code. And, when posting code for others to use and/or adapt, you really need to provide good comments to describe what it does & how it works. |
Topic | Author | Date |
Help me ? 89C52 interfacing with EEPROM 24C02 | 01/01/70 00:00 | |
Do *not* use 'for' loops for delays! | 01/01/70 00:00 | |
100k is the upper limit | 01/01/70 00:00 | |
HLL delay loops - just don't do it! | 01/01/70 00:00 | |
that may be difficult | 01/01/70 00:00 | |
but there is a way | 01/01/70 00:00 | |
See if this code is of any help! | 01/01/70 00:00 | |
I doubt it very much | 01/01/70 00:00 | |
No, it isn't | 01/01/70 00:00 | |
doubts 1,2,3 | 01/01/70 00:00 | |
code for 24c02 wih 89c52 | 01/01/70 00:00 | |
Do *not* use 'for' loops for delays! | 01/01/70 00:00 | |
code? | 01/01/70 00:00 |