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

pulseout?

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

pulseout?
PostPosted: Wed Dec 29, 2004 5:19 pm     Reply with quote

Pulseout is a Basic language command , which is to generate pulse (10-us resoultion), I do know if there is related function in c language. I was also tried to simulated this function using the following code
Code:


output_high(PIN_A0);
delay_ms(1);  //delay time could be any numaber
output_low(PIN_A0);



is this correct?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 29, 2004 5:54 pm     Reply with quote

The source in ASM is available on this page:
http://www.piclist.com/techref/microchip/seepicsrc/index.htm
You could use the ASM code as a guide, and convert it to CCS.
Guest








PostPosted: Thu Dec 30, 2004 7:19 am     Reply with quote

Thank you PCM: would you help me to convert it to c, I know nothing about ASM?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 30, 2004 4:41 pm     Reply with quote

I think you should try to do it. It's better for you to learn
something than for me to do it for you.
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