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

EX_FREQC question....

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



Joined: 16 Dec 2005
Posts: 22

View user's profile Send private message

EX_FREQC question....
PostPosted: Mon Aug 13, 2007 7:10 pm     Reply with quote

I've looked at the EX_FREQC example of CCS C compiler but I couldn't understand what pin is used as input of the frequency being measured. Anybody knows this? Thank you.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 13, 2007 7:34 pm     Reply with quote

The comments say this:
Quote:
/// The input signal is to be supplied to pin C0
aldinlapinig



Joined: 16 Dec 2005
Posts: 22

View user's profile Send private message

PostPosted: Tue Aug 14, 2007 8:52 am     Reply with quote

thank you PCM Programmer...I just couldn't understand how it configured pin C0 as output. I'm doing a project now that measures the frequency from 8 inputs. Can I use the same program to do this? How can I make the program to read the frequency from many different pins (like ports b4,b5,b6,b7, a1,a2,a3)? I'm sorry for asking too much but I'm running out of ideas. I'm an amature hobbyist. Thank you very much.
srikanth bodduna



Joined: 04 Jan 2009
Posts: 9
Location: India

View user's profile Send private message AIM Address

EX_FREQC.C with pic16f873a
PostPosted: Sat Jan 10, 2009 1:49 am     Reply with quote

did anybody tried the EX_FREQC.C with pic16f873a if so please help me...what changes sholud be made to get the result.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 10, 2009 1:10 pm     Reply with quote

Ex_Freqc.c uses Timer1 with an External Input. The input is on pin C0.
Pin C0 is a Schmitt Trigger input pin. This means it requires input voltage
levels of 0v to 4v, when the PIC is running at 5v.

Your circuit only provides 2.3v input levels. So it will not work.
You neeed to fix this problem. Increase the input level so it goes
between 0v and 4v.

Until you do this, nothing will work.
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