
Maxim Integrated 18-11
MAX31782 User’s Guide
Revision 0; 8/11
18.3.9 Command 08h—Get Loader Version
This command returns the device’s bootloader version. The format of the version is VersionH.VersionL. For example,
if VersionL returns 00h and VersionH returns 01h, this corresponds to bootloader version 1.0. This command is not
password protected.
18.3.10 Command 09h—Get Utility ROM Version
This command returns the device’s ROM code version. The format of the ROM version is VersionH.VersionL. For
example, if VersionL returns 00h and VersionH returns 01h, this corresponds to ROM version 1.0. This command is not
password protected.
18.3.11 Command 0Eh—Get Device Number
This command returns the value that is stored in the DEV_NUM register. This command is not password protected.
18.3.12 Command 10h—Load Code
This command programs (Length) bytes of data into the program flash starting at byte address (AddressH:AddressL).
The bootloader writes one 16-bit word to flash at a time. The low bit of the address is always forced to zero because
instructions in program flash are word aligned. If an odd number of bytes are input, the final word written to the pro-
gram flash has its most significant byte set to 00h. Memory locations in flash that have been previously loaded must be
erased (Master Erase or Page Erase command) before they can be loaded with a new value. The MAX31782 uses a
little-endian memory architecture where the least significant byte of each word is loaded first. For example, if you load
bytes (11h, 22h, 33h, 44h) starting at address 0000h, the first two words of program space are written to 2211h, 4433h.
This command is password protected.
The time required to write one word of data to flash is approximately 80Fs. To guarantee correct programming, a
bootloading program needs to ensure that there is at least 100Fs of time between when the bootloader receives two
words of data. The easiest way to do this is to limit the clock rate to 100kHz. The time to transmit one word of data
with a 100kHz clock exceeds 100Fs, thus giving the previously transmit word time to be programmed into flash prior to
processing the next word. If a faster clock rate is used, delays need to be added to ensure that words are not transmit
at rates faster than 100Fs.
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6
Command NOP Data Out Data Out Return Dummy RX
Input
08h 00h 00h 00h 00h 00h
Output
X X VersionL VersionH 3Eh X
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6
Command NOP Data Out Data Out Return Dummy RX
Input
09h 00h 00h 00h 00h 00h
Output
X X VersionL VersionH 3Eh X
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5
Command NOP Data Out Return Dummy RX
Input
0Eh 00h 00h 00h 00h
Output
X X DEV_NUM 3Eh X
Byte 1 Byte 2 Byte 3 Byte 4
(Length)
Bytes
Byte
Length+5
Byte
Length+6
Byte
Length+7
Command
Data In Data In Data In Data In NOP Return Dummy RX
Input
10h Length AddressL AddressH Data to load 00h 00h 00h
Output
X X X X X X 3Eh X
Comentarios a estos manuales