beautypg.com

Maxq family user’s guide: maxq2010 supplement, Command 0dh—get id information, Command 10h—load code variable length – Maxim Integrated MAXQ Family Users Guide: MAXQ2010 Supplement User Manual

Page 77

background image

MAXQ Family User’s Guide:

MAXQ2010 Supplement

17-4

Command 08h—Get Loader Version

Command 09h—Get Utility ROM Version

Command 0Ah—Set Word/Byte-Mode Access

The mode byte should be 0 to set byte-access mode or 1 to set word-access mode. The current access mode is
returned in the status flag byte by command 04h, as well as a flag to indicate whether word-access mode is supported
by this particular bootloader. Note: The MAXQ2010 supports byte mode only.

Command 0Dh—Get ID Information

For the MAXQ2010, the information returned by this command is a zero-terminated ROM banner string.

17.3 Family 1 Commands: Load Variable Length (Password Protected)

Command 10h—Load Code Variable Length

This command programs (Length) bytes of data into the program flash starting at byte address (AddressH:AddressL),
with the following restrictions.
• The low bit of the address is always forced to zero, since instructions in program flash must be word aligned.
• In byte mode, if an odd number of bytes is input, the final word written to the program flash has its most significant

byte set to 00h by default.

• Memory locations in flash that have previously been loaded must be erased (using the Master Erase command, the

Erase Code Fixed Length command, or the flashErasePage or flashEraseAll utility ROM routines) before they can
be loaded with a different value.

• In keeping with standard MAXQ little-endian memory architecture, the least significant byte of each word is loaded

first. For example, if one loads bytes (11h, 22h, 33h, 44h) starting at address 0000h, the first two words of program
space are written to (2211h, 4433h).

I/O

BYTE 1

BYTE 2

BYTE 3

BYTE 4

BYTE 5

Input

08h

00h

00h

00h

00h

Output

VersionL

VersionH

03Eh

I/O

BYTE 1

BYTE 2

BYTE 3

BYTE 4

BYTE 5

Input

09h

00h

00h

00h

00h

Output

VersionL

VersionH

03Eh

I/O

BYTE 1

BYTE 2

BYTE 3

BYTE 4

Input

0Ah

Mode

00h

00h

Output

03Eh

I/O

BYTE 1

(VARIABLE)

LAST BYTE

Input

0Dh

00h, 00h, 00h . . .

00h

Output

Device-Dependent Information

03Eh

I/O

BYTE 1

BYTE 2

BYTE 3

BYTE 4

(LENGTH)

BYTES

BYTE

LENGTH+5

BYTE

LENGTH+6

Input

10h

Length

AddressL

AddressH

Data to load

00h

00h

Output

03Eh