Danny,

It is important to mention that you are not  familiar with pic line that
way we can explain more instead of saying use CCP.

Andre


Danny Sauer wrote:

>Olin wrote regarding 'Re: [PIC] pulse counter help?' on Tue, Nov 08 at 15:24:
>  
>
>>Danny Sauer wrote:
>>    
>>
>>>For which processor?  The 12F675 or the 16F676 are my two options.
>>>      
>>>
>>I didn't realize you were using a PIC without a CCP module.  CCP stands for
>>"Compare, Capture and Pulsewidth modulation".  In the capture mode it saves
>>a snapshot of timer 1 when a pulse is received.  The software can then grab
>>the captured value when it gets around to it, as long as that happens before
>>the next value is captured.  Since the hardware is doing the timer capture,
>>there is no latency or jitter.  You can run timer 1 from the instruction
>>clock and get very accurate period measurements that way.
>>    
>>
>
>I'm not very familiar with the PIC line at all - so I've been sticking
>with the 12f675 and the chip that's basically the same but with more
>GPIOs, the 16F676.  In one of your other posts I saw mention of the
>12F683, so I read the data sheet on it today.  The CCP does look like
>a nifty piece, and the presence of 4 ADCs addresses a problem I had
>earlier with working around the limitation of having just one on the
>chips I was using.  Other that having more available memory, it looks
>to be the same form a programming perspective.  Maybe I should look at
>the rest of the line a little more closely... :)
>
>Thanks.
>--Danny
>  
>
-- 
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist