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: Using a constant as a function parameter
Darknight23

Replies: 2
Views: 4557

PostForum: General CCS C Discussion   Posted: Mon Nov 14, 2005 12:09 pm   Subject: Using a constant as a function parameter
I'm trying to use a constant as a parameter into a function, but for some reason I'm getting the error "Expecting a close paren". I'm sure its an easy mistake...

#Define ON 1;

void Turn_On(int1 ...
  Topic: restart main() in 10 seconds
Darknight23

Replies: 5
Views: 8815

PostForum: General CCS C Discussion   Posted: Tue Nov 08, 2005 8:31 pm   Subject: restart main() in 10 seconds
Sure, I have 3 infrared sensors mounted on the front of a remote control car. The middle IR detects the object around 1 ft and turns on the top/bottom IR. The top and bottom IR are used for close rang ...
  Topic: restart main() in 10 seconds
Darknight23

Replies: 5
Views: 8815

PostForum: General CCS C Discussion   Posted: Tue Nov 08, 2005 6:59 pm   Subject: restart main() in 10 seconds
The loop is actually within another function separate from main(). Yes it is apart of the normal operation, therefore a WDT wouldn't be appropriate. Basically restart the PICs operation after a spec ...
  Topic: restart main() in 10 seconds
Darknight23

Replies: 5
Views: 8815

PostForum: General CCS C Discussion   Posted: Tue Nov 08, 2005 6:50 pm   Subject: restart main() in 10 seconds
I'm using a 16F818, and I've read about using Timer1 as a real-time clock, but is there an easier way to do this? If a loop executes for 10 seconds I wanted to restart the main() method.
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group