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

Need a simple PIC code urgently... please help

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







Need a simple PIC code urgently... please help
PostPosted: Wed May 09, 2007 7:17 am     Reply with quote

hi all...

I need a code to generate a pwm output from my PIC micro controller, the one m using is PIC16F877A,The PWM duty cycle should keep varying based on few conditions. the conditions i'll put on my own, just if I can get a code outline....


Also i need an interfacing program . I need to interface 2 things, one is a RPM sensor, which gives continuous pulses as output. These pulses need to be counted.


Another sensor which just gives an output voltage in the range of 4 volts has to be read into any port pin... basically port A...

Please help me out wid de codes... need it urgently.. Sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 09, 2007 11:45 am     Reply with quote

Here are some example programs that are in the forum archives.

Quote:

I need a code to generate a pwm output from my PIC micro controller.

http://www.ccsinfo.com/forum/viewtopic.php?t=23149&start=6


Quote:
I need to interface 2 things, one is a RPM sensor, which gives
continuous pulses as output. These pulses need to be counted.

This one doesn't count pulses. It uses CCP to count time between pulses
and converts that to a frequency.
http://www.ccsinfo.com/forum/viewtopic.php?t=29963


Quote:

Another sensor which just gives an output voltage in the range of 4 volts
has to be read into any port pin... basically port A...

http://www.ccsinfo.com/forum/viewtopic.php?t=28842&start=7
jds-pic



Joined: 17 Sep 2003
Posts: 205

View user's profile Send private message

PostPosted: Wed May 09, 2007 1:15 pm     Reply with quote

PCM programmer wrote:
Here are some example programs that are in the forum archives.


where were you 20 years ago when i needed help with my undergrad assignments? Very Happy Very Happy Very Happy

jds-pic
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