PG4UW software
85
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 k are data bits, i.e. serial number byte
Opcode of RETLW instruction is hexadecimal 34KKH where KK is data Byte (serial number
byte)
Let’s assume we want to write serial number 1234ABCDH as part of four RETLW instructions
to device PIC. The highest Byte of serial number is the most significant Byte. We want to
write the serial number to device program memory at address 40H. Serial number split us
very useful in this situation. Serialization without serial number split will write the following
number to buffer and device:
Содержание BeeHive304
Страница 6: ...Elnec s r o 6 Introduction ...
Страница 10: ...Elnec s r o 10 Quick Start ...
Страница 13: ...Detailed description 13 Detailed description ...
Страница 14: ...Elnec s r o 14 BeeHive304 ...
Страница 29: ...BeeProg3 29 BeeProg3 ...
Страница 43: ...Setup 43 Setup ...
Страница 48: ...Elnec s r o 48 Step 9 Installation process will start Step 10 Click Finish button to finish setup ...
Страница 58: ...Elnec s r o 58 PG4UW software ...
Страница 125: ...PG4UWMC software 125 PG4UWMC software ...
Страница 138: ...Elnec s r o 138 Installation procedure customized ...
Страница 143: ...Common notes 143 Common notes ...
Страница 148: ...Elnec s r o 148 Troubleshooting and warranty ...
Страница 152: ...Elnec s r o Jana Bottu 5 SK 080 01 Presov Slovakia www elnec com ZLI 0330 ...