MPLAB® IPE SQTP File Generation

MPLAB® IPE can be used to generate an SQTP file.

  1. Launch MPLAB IPE.
  2. Select Settings > Advanced Mode. In the Advanced Settings dialog, enter a password to enable Advanced mode (the factory default is microchip). Click Log on.
  3. Click on the SQTP tab on the left side of the window.
  4. Set up SQTP file generation as described in the table below.

Table: MPLAB IPE SQTP Settings

Setting Description Applies to
Generation Method
Random Select this option to generate unique, random numbers for each part.
There is no guarantee that the numbers will be non-repeating. However, the probability of such an occurrence is infinitesimally small for a reasonably large field.
SQTP Field 5. Data
Pseudo Random: Seed Value (HEX) Select this option to generate a pseudo-random set of non-repeating numbers based on the HEX value you enter in the Seed Value field.
Pseudo-random sequences are, by definition, non-repeating until all possible values are used.
SQTP Field 5. Data
Sequential: Start Value (HEX), Increment (HEX) Select this option to generate sequential numbers based on the starting value specified and incrementing each number by the amount specified.
The least significant digit is in the lowest memory location. The increment value must be between one and 255. Numbers are always in a hexadecimal format, not in Binary Code Decimal (BCD) or any other format.
SQTP Field 5. Data
Start Address (HEX) Enter the starting address (in HEX) for the serial number. SQTP Field 3. Address
Number of bytes (Dec) Enter the size of the serial number (in decimal).
Make sure a large enough serial number is specified for the number of parts planned to program using this file.
SQTP Field 5. Data
Number of parts (Dec) Enter the number of parts to be programmed using this file. SQTP Field 5. Data
Generate Click Generate to create the SQTP (NUM) file.
Program Memory, EEPROM,
Auxiliary Memory,
User ID Memory,
Boot Memory,
Flash Data
Select this option to load the SQTP number in the selected memory Memories to program
Access Method
Return Literal W (RETLW) Select this option to use a series of RETLW instructions with the serial number bytes as the literal data.
This selection is ignored if not applicable to the device chosen.
See "Understanding Usage of RETLW in SQTP File for Midrange and Baseline Devices".
8-bit devices
Raw Data Select this option to use the raw data. This is used for most devices. All PIC®/dsPIC® devices
Format for Program Space Visibility (PSV) If the Raw Data option is selected, selecting Format for PSV formats SQTP data to make it compatible with PSV. PIC24, dsPIC devices
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.