PG4UW
93
Split serial number: unchecked (empty box)
Following values will be written to device:
The 1st device
Address Data
007FFF0 xx xx xx xx xx xx xx xx xx xx xx xx 00 00 00 16
The 2nd device
Address Data
007FFF0 xx xx xx xx xx xx xx xx xx xx xx xx 01 00 00 16
The 3rd device
Address Data
007FFF0 xx xx xx xx xx xx xx xx xx xx xx xx 02 00 00 16
etc.
”xx” mean user data programmed to device
Serial numbers are written to device from address 7FFFCH to address 7FFFFH because serial
number size is 4 bytes.
Example 2:
Following example shows usage of SQTP serialization mode when serial number is split into
RETLW instructions for Microchip PIC16F628 devices.
Note: Serial quick turn programming (SQTP) is Microchip specified standard for serial
programming of Microchip PIC microcontrollers. Microchip PIC devices allows you to program
a unique serial number into each microcontroller. This number can be used as an entry code,
password, or ID number.
Serialization is done by using a series of RETLW (Return Literal W) instructions, with the serial
number bytes as the literal data. To serialize, you can use Incremental mode serialization or
From file mode serialization.
Incremental serialization offers serial number Split function. Serial number split allows usage of
incremental numbers separated into even or odd bytes and between each byte of serial
number RETLW instruction code is inserted.
From file serialization is using proprietary serial numbers file. This file can consist of various
serial numbers. The numbers can have format suitable for SQTP that means number RETLW
b1 RETLW b2 and so on. Note that PG4UW serial file format is not compatible with SQTP
serial file generated by Microchip MPLAB.
Example 2a:
Use of serialization split with RETLW instructions for Microchip PIC16F628 devices.
Device PIC16F628 has 14 bit wide instruction word. Instruction RETLW has 14-Bit Opcode:
Description
MSB 14-Bit
word LSB
RETLW
Return
with
literal
in
W 11 01xx kkkk kkkk
where xx can be replaced by 00 and kkkk are data bits, i.e. serial number byte
Opcode of RETLW instruction is hexadecimal 34KKH where KK is data Byte (serial number
byte)
Summary of Contents for BeeHive204
Page 7: ...Introduction 7 Introduction ...
Page 12: ...Elnec s r o 12 Quick Start ...
Page 15: ...Detailed description 15 Detailed description ...
Page 16: ...Elnec s r o 16 BeeHive204 ...
Page 33: ...BeeProg2 BeeProg2C 33 BeeProg2 BeeProg2C ...
Page 50: ...Elnec s r o 50 SmartProg2 ...
Page 59: ...Setup 59 Setup ...
Page 66: ...Elnec s r o 66 PG4UW ...
Page 141: ...PG4UWMC 141 PG4UWMC ...
Page 162: ...Elnec s r o 162 Common notes ...
Page 176: ...Elnec s r o 176 Troubleshooting and warranty ...