OptimaUserManual.pdf - 第68页
OPTIMA PROM SOF TW AR E Opti ma User M anual 62 32-Bi t Low and High Word This option is used to split a 32- bit data file into tw o 16-bit data files. To split a 32-bi t data f ile i nto two 16- bit data files, foll ow …

OPTIMA PROM SOFTWARE
Optima User Manual
61
32-Bit Byte0…Byte3
This option is used to split a 32-bit data file into four 8-bit data files.
To split a 32-bit data file into four 8-bit data files, follow this eight-step process:
1. Select the 32-Bit data file that is to be split into four 8-bit files, select 32-Bit Byte
0, and load the file. Data bytes D0-D7 will be loaded into Optima Ram Buffer
(shown in bold).
2. Program the first 8-bit memory device.
3. Repeat the file download operation, and select 32-Bit Byte 1.
Data bytes D8-D15 will be loaded into the Ram Buffer (shown in italics).
4. Program the second 8-bit device.
5. Repeat the file download operation, and select 32-Bit Byte 2.
Data bytes D16-D23 will be loaded into the Ram Buffer (shown in underline).
6. Program the third 8-bit device.
7. Repeat the file download operation a forth time, and select 32-Bit Byte 3.
Data bytes D24-D31 will be loaded into the Ram Buffer (shown in regular).
8. Program the fourth 8-bit device.
Example 6: 32-Bit Byte0…Byte3
File Data Ram Buffer
Byte 0 Byte 1 Byte 2 Byte 3
$A000, Address Data Data Data Data
00 01 02 03 04 05 06
07 0000 00 01 02 03
0001 04 05 06 07
$A008, 0002 08 09 0A 0B
08 09 0A 0B 0C 0D 0E
0F0003 0C 0D 0E 0F
0004 00 11 22 33
$A010, 0005 44 55 66 77
00 11 22 33 44 55 66
77 0006 88 99 AA BB
0007 CC DD EE FF
$A018,
88 99 AA BB CC DD EE
FF
OPTIMA PROM SOFTWARE
Optima User Manual
62
32-Bit Low and High Word
This option is used to split a 32-bit data file into two 16-bit data files.
To split a 32-bit data file into two 16-bit data files, follow this four step process:
1. Select the 32-bit data file to be split into two 16-bit files, select 32-Bit Low Word
and load the file.
All the low-order data words will be loaded into Optima Ram Buffer (shown in
bold).
2. Program the 16-bit memory device.
3. Repeat the file download operation, and select 32-Bit High.
All the high order data words will be loaded into the Ram Buffer (shown in
italics).
4. Program the second 16-bit device.
Example 7: 32-Bit Low and High Word
File Data Optima Ram Buffer Optima Ram Buffer
Low Word Selected High Word Selected
$A000, Address Data Data
00 01 02 03 04 05 06 07 0000 00 02
0001 01 03
$A008, 0002 04 06
08 09 0A 0B 0C 0D 0E 0F 0003 05 07
0004 08 0A
$A010, 0005 09 0B
00 11 22 33 44 55 66 77 0006 0C 0E
0007 0D 0F
$A018, 0008 00 22
88 99 AA BB CC DD EE FF 0009 11 33
000A 44 66
000B 55 77
000C 88 AA
000D 99 BB
000E CC EE
000F DD FF
OPTIMA PROM SOFTWARE
Optima User Manual
63
Intel/Motorola Format:
This option is used to do an odd/even byte swap as data is loaded. By selecting Intel
Little Endian (default value), the data is loaded directly into memory. By selecting
Motorola Big Endain, an odd/even byte swap is performed before the data is stored in
the Ram Buffer.
Note: Versions of Optima software after B/99 have a Byte Swap
feature located under the Memory menu. This feature can
also be used after a file download.
Example 8: Intel/Motorola Format
File Data Optima Ram Buffer Optima Ram Buffer
Intel Little Endian Motorola Big Endian
$A000, Address Data Data
00 01 02 03 04 05 06 07 0000 00 01
0001 01 00
$A008, 0002 02 03
08 09 0A 0B 0C 0D 0E 0F 0003 03 02
0004 04 05
$A010, 0005 05 04
00 11 22 33 44 55 66 77 0006 06 07
0007 07 06
$A018, 0008 08 09
88 99 AA BB CC DD EE FF 0009 09 08
000A 0A 0B
000B 0B 0A
000C 0C 0D
000D 0D 0C
000E 0E 0F
000F 0F 0E