SW006010 Microchip Technology, SW006010 Datasheet - Page 21

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
 2002 Microchip Technology Inc.
OpenCapture1
OpenCapture2
OpenCapture3
OpenCapture4 (Continued)
Arguments:
Remarks:
config
The value of config can be a combination of the following values
(defined in
All OpenCapture functions
OpenCapture1
OpenCapture2
OpenCapture3
OpenCapture4
This function first resets the capture module to the POR state and
then configures the specified input capture for edge detection,
i.e., every falling edge, every rising edge, every fourth rising edge
or every sixteenth rising edge.
Capture1 has the ability to become a period register for Timer3.
The capture functions use a structure to indicate overflow status
of each of the capture modules. This structure is called CapStatus
and has the following bit fields:
struct capstatus
{
}
CapStatus;
In addition to opening the capture, Timer3 must also be opened
with an OpenTimer3 (...) statement before any of the captures will
operate.
unsigned Cap1OVF:1;
unsigned Cap2OVF:1;
unsigned Cap3OVF:1;
unsigned Cap4OVF:1;
unsigned :4;
CAPTURE_INT_ONInterrupts ON
CAPTURE_INT_OFFInterrupts OFF
C1_EVERY_FALL_EDGE
C1_EVERY_RISE_EDGE
C1_EVERY_4_RISE_EDGE
C1_EVERY_16_RISE_EDGE
CAPTURE1_PERIOD
CAPTURE1_CAPTURE
C2_EVERY_FALL_EDGE
C2_EVERY_RISE_EDGE
C2_EVERY_4_RISE_EDGE
C2_EVERY_16_RISE_EDGE
C3_EVERY_FALL_EDGE
C3_EVERY_RISE_EDGE
C3_EVERY_4_RISE_EDGE
C3_EVERY_16_RISE_EDGE
C4_EVERY_FALL_EDGE
C4_EVERY_RISE_EDGE
C4_EVERY_4_RISE_EDGE
C4_EVERY_16_RISE_EDGE
captur16.h
Hardware Peripheral Library
):
apRNOVS^-page 17

Related parts for SW006010