SW006010 Microchip Technology, SW006010 Datasheet - Page 22

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
MPLAB
apRNOVS^-page 18
C17 C Compiler Libraries
OpenCapture1
OpenCapture2
OpenCapture3
OpenCapture4 (Continued)
Return Value:
File Name:
Code Example:
ReadCapture1
ReadCapture2
ReadCapture3
ReadCapture4
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
ReadCapture1 - PIC17C4X, PIC17C756
ReadCapture2 - PIC17C4X, PIC17C756
ReadCapture3 - PIC17C756
ReadCapture4 - PIC17C756
Reads the result of a capture event from the specified input
capture.
captur16.h
unsigned int ReadCapture1 (void);
unsigned int ReadCapture2 (void);
unsigned int ReadCapture3 (void);
unsigned int ReadCapture4 (void);
None
This function reads the value of the respective input capture
SFRs.
Capture1:
Capture2:
Capture3:
Capture4:
This function returns the result of the capture event. The value is a
16-bit unsigned integer.
cap1read.c
cap2read.c
cap3read.c
cap4read.c
unsigned int result;
result = ReadCapture1();
None
cp1open.c
cp2open.c
cp3open.c
cpopen4.c
OpenCapture1(C1_EVERY_4_RISE_EDGE&CAPTURE 1_CAPTURE);
CA1L,CA1H
CA2L,CA2H
CA4L,CA4H
CA3L,CA3H
 2002 Microchip Technology Inc.

Related parts for SW006010