Microchip Technology TPG100001 User Manual
ICP
Family User’s Manual
Rev: 4.7.3 Jan-2011 Page 11 of 18
13 Serialization
13.1 Create Serialization File
Select "Serialization/Create File" to generate a serialization file
Enter the following data:
- Serial Number (serialization scheme): random, pseudo-random, sequential and user file
- Start Address. The address should be valid for the device
- Number of Words. Enter the number of words (1 to 8) for your serial number.
- Start Value. Enter the start value (1 to 16 hex digits). If the start value is greater than
the maximum value for the number of words selected the most significant digits will be
truncated. The start value must differ from zero for pseudo-random scheme.
- Increment Value. Valid for the sequential scheme only
- User File Name. Valid for "user file" scheme only
- Serial Number (serialization scheme): random, pseudo-random, sequential and user file
- Start Address. The address should be valid for the device
- Number of Words. Enter the number of words (1 to 8) for your serial number.
- Start Value. Enter the start value (1 to 16 hex digits). If the start value is greater than
the maximum value for the number of words selected the most significant digits will be
truncated. The start value must differ from zero for pseudo-random scheme.
- Increment Value. Valid for the sequential scheme only
- User File Name. Valid for "user file" scheme only
Press OK to save a serialization file
NOTES:
A currently selected serialization file will be updated after any successful programming for single-channel
programming and after any programming attempt for ICP2-GANG
programming and after any programming attempt for ICP2-GANG
The "retlw" opcode will be automatically generated for a selected type of devices, i.e.:
- 08(Hex) for low-end microcontrollers (12C5xx, etc)
- 34(Hex) for mid-range microcontrollers (16C/Fxxx)
- b6(Hex) for high-end microcontrollers (17C7xx)
- 0c(Hex) for enhanced microcontrollers (18Fxxx)
- 054(Hex) for 16-bit devices (pattern: 0000_0101_0100_kkkk_kkkk_dddd)
- no retlw is generated for PIC32
- 08(Hex) for low-end microcontrollers (12C5xx, etc)
- 34(Hex) for mid-range microcontrollers (16C/Fxxx)
- b6(Hex) for high-end microcontrollers (17C7xx)
- 0c(Hex) for enhanced microcontrollers (18Fxxx)
- 054(Hex) for 16-bit devices (pattern: 0000_0101_0100_kkkk_kkkk_dddd)
- no retlw is generated for PIC32
13.2 Serialization File Example 1
SerializationScheme
= 2 (0-Random, 1-Pseudo-Random, 2-Sequential, 3-User File)
StartAddress
= 0005 (Hex)
NumberOfWords
= 2 (Hex)
CurrentValue
= 0000000000001234 (Hex)
IncrementValue
= 1 (Hex)
UserFile
= userfile.num
The following program memory locations will be updated as follows: