SW006010 Microchip Technology, SW006010 Datasheet - Page 60

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 56
C17 C Compiler Libraries
ReadTimer0
ReadTimer1
ReadTimer2
ReadTimer3
ReadTimer1_16
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C4X, PIC17C756
Reads the contents of the specified timer register(s).
timers16.h
unsigned int
unsigned char ReadTimer1 (void);
unsigned char ReadTimer2 (void);
unsigned int
unsigned int
None
This function reads the value of the respective timer
register(s).
Timer0:
Timer1:
Timer2:
Timer3:
Timer1_16:
These functions returns the value of the timer register(s) which
may be 8-bits or 16-bits.
Timer0:
Timer1:
Timer2:
Timer3:
Timer1_16:
t0read.c
t1read.c
t2read.c
t3read.c
t12read.c
unsigned int result;
result = ReadTimer0();
ReadTimer0 (void);
ReadTimer3 (void);
ReadTimer1_16 (void);
TMR0L,TMR0H
TMR1
TMR2
TMR3L,TMR3H
TMR2:TMR1
int (16-bits)
char (8-bits)
char (8-bits)
int (16-bits)
int (16-bits)
 2002 Microchip Technology Inc.

Related parts for SW006010