Author |
Message |
Topic: CCP with spike filter |
counterf
Replies: 9
Views: 18954
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2013 12:54 pm Subject: CCP with spike filter |
#fuses HSPLL, PLL5, CPUDIV1, NOWDT, PUT, BROWNOUT, NOLVP // 20 MHz xtal (PIC com XTAL de 20MHZ)
#use delay(clock=20000000)
If you want to run at 20 MHz, use the HS fuse, not HSPLL.
Please ... |
Topic: CCP with spike filter |
counterf
Replies: 9
Views: 18954
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2013 10:47 am Subject: CCP with spike filter |
// HERE FILTER ROUTINES
median_filter(current_ccp_delta);
mean_filter(current_ccp_delta);
You aren't using the return value from the function. It won't work without it.
I ... |
Topic: CCP with spike filter |
counterf
Replies: 9
Views: 18954
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2013 8:36 pm Subject: CCP with spike filter |
Hi PCM. Thank you.
I need to measure frequencies between 0.5 and 3hz. Its for Heart Rate Monitoring. So the final result is frequency*60 (Beats per minutes)
I don't need to know if the final bpm ... |
Topic: CCP with spike filter |
counterf
Replies: 9
Views: 18954
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2013 6:34 pm Subject: CCP with spike filter |
Hi. First thank you PCM Programmer for all this code .
This code below is working with CCP capture only.
I need Help to change this code to implement spike filter on variable "frequency&quo ... |
|