OptimaUserManual.pdf - 第63页
OPTIMA PROM SOF TW AR E Opti ma User M anual 57 Destin ation in mem ory : The hex value pl aced in the De stination in mem ory determines the starting point in the Opt ima Ram Bu ff er wher e da ta will be st or ed . Des…
OPTIMA PROM SOFTWARE
Optima User Manual
56
Start address in file:
If a hexadecimal number is placed in the Start address in file box prior to a file load
operation, the load software waits until that address is reached before placing data into
the Optima Ram Buffer.
In Example 1 below, the Start address in file has been set to 300 hex, and therefore
the load software waits until address 300 hex has been reached before placing data
into the Optima Ram Buffer starting at location zero.
Start address in file works for all formats.
Example 1: Start address in file
File Data (ASCII Hex Space) Optima Ram Buffer
$A000, Address Data
00 01 02 03 04 05 06 07 0000 88
0001 99
$A100, 0002 AA
08 09 0A 0B 0C 0D 0E 0F 0003 BB
0004 CC
$A200, 0005 DD
00 11 22 33 44 55 66 77 0006 EE
0007 FF
$A300, 0008 xx
88 99 AA BB CC DD EE FF 0009 xx
000A xx
000B xx
000C xx
Start address in file = 300 Hex 000D xx
xx = Don’t Care 000E xx
000F xx
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