SW500008 Microchip Technology, SW500008 Datasheet - Page 264

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
READTIMERx
Synopsis
Description
The macros READTIMER0(), READTIMER1() and READTIMER2() will return the 16-Bit
value presently held in the device’s corresponding TMRxL and TMRxH register pair. Use of this
macro ensures that the registers are read in the correct order.
Example
See Also
WRITETIMERx()
Return Value
An unsigned integer which is the value held in a 16-Bit timer.
250
#include <htc.h>
READTIMER0();
READTIMER1();
READTIMER2();
#include <htc.h>
void
main (void)
{
}
unsigned int timer1value;
timer1value = READTIMER1();
Library Functions

Related parts for SW500008