User`s manual

Note: address 80H is because buffer has byte
organization and PIC has word organization so it has
equivalent program memory address 40H. When buffer
has word organization x16, the address will be 40H and
number 1234ABCDH will be placed to buffer as following:
Address Data
0000040 ABCD 1234 xxxx xxxx xxxx xxxx xxxx xxxx
We want to use RETLW instruction so buffer has to be:
Address Data
0000040 34CD 34AB 3434 3412 xxxx xxxx xxxx xxxx
We can do this by following steps:
a) write four RETLW instructions at address 40H to
main buffer (this can be done by hand editing buffer
or by loading file with proper content). The bottom 8
bits of each RETLW 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
Check the option ”Split serial number at every N
byte(s)” and split value N set to 2.
(It means split of serial number 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 is:
Address Data
124