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

How to setup PIC 16F628 to count pulses using CCP

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







How to setup PIC 16F628 to count pulses using CCP
PostPosted: Mon May 02, 2005 8:14 am     Reply with quote

Hi,

MCU: 16F628
Compiler: PCM ver 3.169


How can I setup PIC 16F628 to count the number of pulses . Kindly let me have the detailed setup procedure, I am confused about what is used for this purpose , the Timer 1 input pin or CCP module or pin b0.

Please do help me.

thanks
arunb
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon May 02, 2005 10:20 pm     Reply with quote

What is your overall purpose ? Is it to make a tachometer ?
If so, counting pulses on the input pin is not the best way to do it.
arb1
Guest







RE:
PostPosted: Tue May 03, 2005 5:40 am     Reply with quote

Hi,

The pulses are derived from an optical encoder, I do not know the rate at present.

I would like to use an input pin like RB 3, RB 4 etc. to count the pulses.

thanks
arunb
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