6 – command 05h – get supported commands, 7 – command 06h – get code size, 8 – command 07h – get data size – Maxim Integrated DS4830A Optical Microcontroller User Manual

Page 186: 9 – command 08h – get loader version, 10 – command 09h – get utility rom version

Advertising
background image

DS4830A User’s Guide

186

22.3.6 – Command 05h – Get Supported Commands

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

Command

NOP

Data Out

Data Out

Data Out

Data Out

Return

Input

05h

00h

00h

00h

00h

00h

00h

Output

X

X

SupportL

SupportH

00h

00h

3Eh


The SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value that indicates which command families the
bootloader supports. If bit 0 is set to 1, it indicates that Family 0 is supported. If bit 1 is set to 1, it indicates that
Family 1 is supported. The value returned by the DS4830A is 403Fh, indicating that command families 0, 1, 2, 3, 4,
5 and E are supported. This command is not password protected.

22.3.7 – Command 06h – Get Code Size

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Command

NOP

Data Out

Data Out

Return

Input

06h

00h

00h

00h

00h

Output

X

X

SizeL

SizeH

3Eh


This command returns SizeH:SizeL, which represents the size of available code memory in words minus 1. The
DS4830A will return a value of 7FFFh, which indicates 32k words of program memory are available. This command
is not password protected.

22.3.8 – Command 07h – Get Data Size

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Command

NOP

Data Out

Data Out

Return

Input

07h

00h

00h

00h

00h

Output

X

X

SizeL

SizeH

3Eh


This command returns SizeH:SizeL, which represents the size of available data memory in words minus 1. The
DS4830A will return a value of 07FFh, which indicates 2k words of data memory are available. This command is not
password protected.

22.3.9 – Command 08h – Get Loader Version

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Command

NOP

Data Out

Data Out

Return

Input

08h

00h

00h

00h

00h

Output

X

X

VersionL

VersionH

3Eh


This command returns the device’s bootloader version. The format of the version is VersionH.VersionL. For
example, if VersionL returns 01h and VersionH returns 01h, this corresponds to bootloader version 1.1. This
command is not password protected.

22.3.10 – Command 09h – Get Utility ROM Version

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Command

NOP

Data Out

Data Out

Return

Input

09h

00h

00h

00h

00h

Output

X

X

VersionL

VersionH

3Eh


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.

Advertising