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

Comparator doubt

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



Joined: 01 Jul 2011
Posts: 20

View user's profile Send private message

Comparator doubt
PostPosted: Fri Jul 01, 2011 10:55 am     Reply with quote

Hi people, I am working in a project for timing the amount of time that takes a certain pin to go from 1 to 0. In order of do that I need to get an interrupt from the comparator in a high-to-low mode with the vref_low module set around 0.8v.
The problem is that I can't find the way of set the comparator in this high to low mode.

Does anyone know how to do this? or someone have a better way of getting what i need?

Thanks a lot and sorry for my horrible English.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 01, 2011 12:56 pm     Reply with quote

1. Post your PIC and compiler version.

2. Also, what type of signal is this ? Is it a sine wave ? What are the
high and low voltage levels of the waveform ? What's the frequency ?
If it's not a continous sinewave, then what's the shortest and the longest
risetime that you expect to get from the waveform ?
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