OptimaUserManual.pdf - 第64页
OPTIMA PROM SOF TW AR E Opti ma User M anual 58 File m ode: Th is o pt ion allows you to re ar r an ge th e f ile d at a s o t ha t t h e da t a will fit in t he targeted-prog rammed dev ice. F or example, a 16- bit dat …
OPTIMA PROM SOFTWARE
Optima User Manual
57
Destination in memory:
The hex value placed in the Destination in memory determines the starting point in the
Optima Ram Buffer where data will be stored.
Destination in memory works for all file formats.
In Example 2 below the Destination in memory value is set to 800 hex; this causes the
start of the data file to be placed at 800 hex in the Optima Ram Buffer.
Example 2: Destination in memory
File Data (ASCII Hex Space) Optima Ram Buffer
$A000, Address Data
00 01 02 03 04 05 06 07 0000 xx
0100 xx
$A008, 0200 xx
08 09 0A 0B 0C 0D 0E 0F 0300 xx
0400 xx
$A010, 0500 xx
00 11 22 33 44 55 66 77 0600 xx
0700 xx
$A018, 0800 00
88 99 AA BB CC DD EE FF 0801 01
0802 02
0803 03
0804 04
Destination in memory = 800 Hex 0805 05
xx = Don’t Care 0806 06
0807 07
OPTIMA PROM SOFTWARE
Optima User Manual
58
File mode:
This option allows you to rearrange the file data so that the data will fit in the
targeted-programmed device. For example, a 16-bit data file has to be programmed
into two 8-bit devices. File mode has five different ways to rearrange data:
x 8-Bit All—No effect on the incoming data.
x 8 Bit Merge Low and High—Used to merge two 8-bit files into one 16-bit file.
x 16-Bit Even and Odd—Used to program a 16-bit data file into two 8-bit devices.
x 32-Bit Byte 0, Byte 1, Byte 2, Byte 3—Used to program a 32-bit data file into
four 8-bit devices.
x 32-Bit Low and High Word—Used to program a 32-bit data file into two 16-bit
devices.
8-Bit All
With 8-Bit All, the file data that is read is transferred directly into the Optima Ram
Buffer, as shown in Example 3 below.
Example 3: 8-Bit All
File Data Optima Ram Buffer
$A000, Address Data
00 01 02 03 04 05 06 07 0000 00
0001 01
$A008, 0002 02
08 09 0A 0B 0C 0D 0E 0F 0003 03
0004 04
$A010, 0005 05
00 11 22 33 44 55 66 77 0006 06
0007 07
$A018, 0008 08
88 99 AA BB CC DD EE FF 0009 09
000A 0A
000B 0B
000C 0C
000D 0D
000E 0E
000F 0F
OPTIMA PROM SOFTWARE
Optima User Manual
59
8-Bit Merge Low and High
This option is used to merge two 8-bit data files into one 16-bit data file, allowing a
16-bit device to be programmed.
To merge two 8-bit files into one 16-bit file, follow this four step process:
1. Select the first 8-bit file, choose 8-Bit Merge Low, and load your file.
The 8-bit data will be loaded at all the even addresses (shown in bold below).
2. Select the second 8-bit file, choose 8-Bit Merge High, and load the file.
The 8-bit data will be loaded at all the odd addresses. (shown in italics below).
3. Program the 16-bit memory device.
4. Save the newly created 16-bit data file.
Example 4: 8-Bit Merge Low and High
File Data Optima Ram Buffer
$A000, (8-Bit file one) Address Data
00 01 02 03 04 05 06 07 0000 00
0001 00
$A008, 0002 01
08 09 0A 0B 0C 0D 0E 0F 0003 11
0004 02
$A000, (8 Bit file two) 0005 22
00 11 22 33 44 55 66 77 0006 03
0007 33
$A008, 0008 04
88 99 AA BB CC DD EE FF 0009 44
000A 05
000B 55
000C 06
000D 66
000E 07
000F 77