haxan
New Member
Hi, How can i check the duration of a delay in terms of divisions of seconds (micro, mili etc)
I want to generate a function to delay100us but cannot calibrate it accurately (without use of timers).
For a clock of 4MHz,
does the above code generate Delay100Us(1) 100Us ? Please help me.
P.S: I dont have any debugging tool kits, just proteus software.
I want to generate a function to delay100us but cannot calibrate it accurately (without use of timers).
For a clock of 4MHz,
Code:
void Delay100Us(unsigned char time)
{
char x;
for(x=0;x<time;x++)
Delay10TCYx(9);
}
does the above code generate Delay100Us(1) 100Us ? Please help me.
P.S: I dont have any debugging tool kits, just proteus software.
Last edited: