| ??? 04/17/10 11:47 Modified: 04/17/10 11:50 Read: times |
#175102 - Ask yourself this Responding to: ???'s previous message |
DELAY_20MS: MOV R0,#4607 ;4607 cycles for 20 ms
_ABCD: NOP
NOP
DJNZ R0, _ABCD
RET
Hmm. Ask yourself this: what is the largest number you can put in R0 ? Satisfy yourself that this works, and then rewrite it properly, and use the timers, as this was discussed in great detail very recently. STeve |
| Topic | Author | Date |
| Servo motor PWM on AT89S52 | 01/01/70 00:00 | |
| Search function? | 01/01/70 00:00 | |
| Thanks, but what about the code? | 01/01/70 00:00 | |
| Ask yourself this | 01/01/70 00:00 | |
to debug the code | 01/01/70 00:00 |



