View previous topic :: View next topic |
Author |
Message |
Joshua Lai
Joined: 19 Jul 2004 Posts: 42 Location: Malaysia, PJ
|
|
Posted: Tue Oct 25, 2005 10:00 pm |
|
|
What I did is
Code: |
delay_us(a1);
delay_us(a2);
delay_us(a3);
delay_us(a4);
|
I use four integer variables. I use loop to calculate a1, a2, a3, a4 from another long integer when I want to delay more than 255us and less than 1ms.
Any nicer example program to do delay? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Oct 26, 2005 6:14 am |
|
|
Joshua Lai wrote: | What I did is
Code: |
delay_us(a1);
delay_us(a2);
delay_us(a3);
delay_us(a4);
|
I use four integer variables. I use loop to calculate a1, a2, a3, a4 from another long integer when I want to delay more than 255us and less than 1ms.
Any nicer example program to do delay? |
Yeah, PCM gave you the link to it |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|