Dataman 40Pro User Manual
Page 101
PG4UW
101
instruction are not important now, because serialization will write correct serial number bytes
at bottom 8 bits of each RETLW instruction.
The buffer content before starting device program will look for example as following:
Address Data
0000040 3400 3400 3400 3400 xxxx xxxx xxxx xxxx
8 bits of each RETLW instructions are zeros, they can have any value.
B) Set the serialization options as following:
S/N size:
4 Bytes
Address:
40H
Start value:
1234ABCDH
Step:
1
S/N mode:
BIN
Style:
HEX
Save to buffer:
LS Byte first
Split serial number:
checked
Split gap:
1 byte(s)
S/N fragment size:
1 byte(s)
Split settings described above mean split of serial number by bytes to buffer at every second
byte. The correct serial number is set tightly before device programming operation starts.
The buffer content of serial number when programming the first device will be:
Address Data
0000040 34CD 34AB 3434 3412 xxxx xxxx xxxx xxxx
The second device will have:
Address Data
0000040 34CE 34AB 3434 3412 xxxx xxxx xxxx xxxx
Next devices will have same format of serial number, of course incremented by 1 for each
device.
Example 2.b
Use of serialization split with NOP instructions for Microchip PIC24FJ256 devices
Device PIC24FJ256 has 24 bit wide instruction word. Instruction NOP has code 00xxxxh.
Let's assume we want to use serialization in the same manner as SQTP serialization
specified in Microchip MPLAB®:
We can do this by following steps:
A) Write NOP instructions (00xxxxh) at address 800h to main buffer of PG4UW. This can be
done by hand editing buffer or by loading file with proper content. The address 800h in
PG4UW buffer is equivalent to PIC24Fxxx Program memory address 200h. For more details
look at Device information in PG4UW for PIC24FJ256 device.
The buffer content with NOPs at address 800h before starting device program should look for
example as following: