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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: Timer problem
Eto

Replies: 11
Views: 24585

PostForum: General CCS C Discussion   Posted: Tue Jul 31, 2018 1:48 pm   Subject: Timer problem
As I said just break up the delays.
If you have a lot, then write a simple macro that automatically generates a split delay, and use this.
Honestly 'long term', don't code like this. Have a master l ...
  Topic: Timer problem
Eto

Replies: 11
Views: 24585

PostForum: General CCS C Discussion   Posted: Tue Jul 31, 2018 12:37 pm   Subject: Timer problem
You can't easily.

Break your delay up. So have say 10*0.1 second delays and test after each.

My prog is same as below

Void test1 (){
Code
Delay
Code
Delay
}

Void tes ...
  Topic: Timer problem
Eto

Replies: 11
Views: 24585

PostForum: General CCS C Discussion   Posted: Tue Jul 31, 2018 11:34 am   Subject: Timer problem
You have the question of what you mean by 'active'. Pulled low?. Pulled high?.

Something like:

if (input(the_pin_you_want==1))
break;


If that is done inside a 'while', ...
  Topic: Timer problem
Eto

Replies: 11
Views: 24585

PostForum: General CCS C Discussion   Posted: Tue Jul 31, 2018 10:44 am   Subject: Timer problem
I write one prog, I want to check one pin during run my program, how I can define that pin,
if that pin active, my program run else return to main.
I use "while" but my program is many li ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group