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 support@ccsinfo.com

pulse signal generator, help?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
attheedge



Joined: 17 Mar 2010
Posts: 1

View user's profile Send private message

pulse signal generator, help?
PostPosted: Wed Mar 17, 2010 5:10 pm     Reply with quote

Hello everybody,

I'm trying to write a pulse signal generator in CCS C. This generator will start with a button press and pulse has characteristics like 200us HIGH, 9800us LOW, means in otherwords it has 100Hz frequency. And also pulse will stop after 30 minutes.

I tried some solutions but I can not set the correct timing. Please help.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 17, 2010 5:22 pm     Reply with quote

See these CCS example files:
Quote:

c:\program files\picc\examples\ex_pgen.c
c:\program files\picc\examples\ex_ccp1s.c

You can use one of these button routines:

Here is a simple routine that waits for a button press:
http://www.ccsinfo.com/forum/viewtopic.php?t=19874

Here is the "Button Command" code that I wrote for the Code Library:
http://www.ccsinfo.com/forum/viewtopic.php?t=23837
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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