SW500008 Microchip Technology, SW500008 Datasheet - Page 204

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
device_id_read()
Synopsis
Description
This function returns the device ID code that is factory-programmed into the chip. This code can be
used to identify the device and its revision number.
Example
See Also
flash_read(), config_read()
190
#include <htc.h>
unsigned int device_id_read(void);
#include <htc.h>
void
main (void)
{
}
unsigned int
unsigned int
unsigned char revision_no;
id_value = device_id_read();
device_code = (id_value > > 5);
revision_no = (unsigned char)(id_value & 0x1F);
/* lower 5 bits represent revision number
* upper 11 bits identify device */
id_value;
device_code;
Library Functions

Related parts for SW500008