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
0000040
34CD 34AB 3434 3412 xxxx xxxx xxxx xxxx
That's it.
Example 3:
Following example uses the same serialization options as Example number 2, instead the
serial number split is set to 3 and 4.
When "Split serial number at every 3 byte(s)" is set, the buffer content will look as:
Byte buffer organization:
Address
Data
0000080
CD xx xx AB xx xx 34 xx xx 12 xx xx xx xx xx xx
Word16 buffer organization:
Address
Data
0000040
xxCD ABxx xxxx xx34 12xx xxxx xxxx xxxx
When "Split serial number at every 4 byte(s)" is set, the buffer content will look as:
Byte buffer organization:
Address
Data
0000080
CD xx xx xx AB xx xx xx 34 xx xx xx 12
Word16 buffer organization:
116
ELNEC s. r. o.
Need help?
Do you have a question about the MEMprog2 and is the answer not in the manual?
Questions and answers