SW500008 Microchip Technology, SW500008 Datasheet - Page 225

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
Library Functions
idloc_read(),idloc_write()
Synopsis
Description
These functions allow access to the user ID register which can be used to store small amounts of
information such as serial numbers, checksums etc.
contained in the register is returned.
written to the selected register. Note that only the lower nibble is significant. The upper nibble of
the value written will always be 0xF as per Microchip’s documentation.
Example
See Also
device_id_read(),config_read(),config_write()
idloc_read() accepts a single parameter to determine which user ID register to read. The value
idloc_write() doesn’t return any value. It accepts a second parameter which is a value to be
#include <htc.h>
unsigned char idloc_read(void);
void idloc_write(unsigned char, unsigned char);
#include <htc.h>
void
main (void)
{
}
unsigned char
value = idloc_read(2); // read register 2
value++;
idloc_write(2, value); // update user ID register
value;
// modify value
211

Related parts for SW500008