CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

voltage and delay problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Joshua Lai



Joined: 19 Jul 2004
Posts: 42
Location: Malaysia, PJ

View user's profile Send private message Send e-mail

PostPosted: Tue Oct 25, 2005 10:00 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Wed Oct 26, 2005 6:14 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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