
Elnec s. r. o.
86
Address Data
0000080 CD AB 34 12 xx xx xx xx xx xx xx xx xx xx xx xx
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
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.
Summary of Contents for BeeHive304
Page 6: ...Elnec s r o 6 Introduction ...
Page 10: ...Elnec s r o 10 Quick Start ...
Page 13: ...Detailed description 13 Detailed description ...
Page 14: ...Elnec s r o 14 BeeHive304 ...
Page 29: ...BeeProg3 29 BeeProg3 ...
Page 43: ...Setup 43 Setup ...
Page 58: ...Elnec s r o 58 PG4UW software ...
Page 125: ...PG4UWMC software 125 PG4UWMC software ...
Page 138: ...Elnec s r o 138 Installation procedure customized ...
Page 143: ...Common notes 143 Common notes ...
Page 148: ...Elnec s r o 148 Troubleshooting and warranty ...
Page 152: ...Elnec s r o Jana Bottu 5 SK 080 01 Presov Slovakia www elnec com ZLI 0330 ...