SW500007 Microchip Technology, SW500007 Datasheet - Page 204

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
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
015P
778-1002
778-1002
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 SW500007