chap12/incap_switch_pulse_measure.c File Reference

#include "pic24_all.h"
#include <stdio.h>

Go to the source code of this file.

Functions

void CONFIG_SW1 ()
 Switch1 configuration.


Detailed Description

Measures the pulse width of pushbutton switching using input capture and Timer2 This projects uses an external crystal for accuracy. CLOCK_CONFIG=PRIPLL_8MHzCrystal_40MHzFCY is defined in the MPLAB project. Remove this macro if you wish to use the internal oscillator. Typical crystal accuracy for through hole is +/-20 pmm, so for a 100000 us pulse width measurement this is +/- 2 us.

Definition in file incap_switch_pulse_measure.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8