Hi, I want to know how to generate delays using C. I am using 89c51, 11.0592 crystal.
the difference between 50.0 and 49.99 is about 4 uS. To achieve that precision with 12Mhz Xtal and - I assume a 12 clocker - you need be precise within 4 instruction cycles. That will require that there are no MUL or DIV instructions in your program since an itrerrupt does not interrupt an instruction in progress. Erik
Hi Erik, Thanks again for the reply, can you suggest me any other alternative to measyre frequency, cos i am going to be using mul and div instructions, cos this meter has a RPM meter as well. I repeat, i am using a 12 MHz clocker, 89c51, and am looking at .01Hz resolution. Thanks
you gan get the resolution with no problem, just not the accuracy. Erik