beautypg.com

1 serial command language, Serial command language – Maxim Integrated 71M6541 Demo Board User Manual

Page 11

background image

71M6541 Demo Board REV 3.0 User’s Manual

11

Rev 4.0

1.8.1 SERIAL COMMAND LANGUAGE

The Demo Code residing in the flash memory of the 71M6541 provides a convenient way of examining and
modifying key meter parameters via its command line interface (CLI).

The tables in this chapter describe the commands in detail.

Commands for CE Data Access:

]

CE DATA ACCESS

Comment

Description:

Allows user to read from and write to CE data space.

Usage:

] [Starting CE Data Address] [option]…[option]

Command
combinations:

]A???

Read consecutive 16-bit words in Decimal, starting at ad-
dress A

]A$$$

Read consecutive 16-bit words in Hex, starting at address A

]A=n=n

Write consecutive memory values, starting at address A

Example:

]40$$$

Reads CE data words 0x40, 0x41 and 0x42.

]7E=1AD2=9A23

Writes two hexadecimal words starting @ 0x7E

]10=+16384

Writes one decimal word starting @ 0x10

All CE data words are in 4-byte (32-bit) format. Typing ]A? will access the 32-bit word located at the byte ad-
dress 0x0000 + 4 * A = 0x1028.

Commands for MPU/XDATA Access:

)

MPU DATA ACCESS

Comment

Description:

Allows user to read from and write to MPU data space.

Usage:

) [Starting MPU Data Address] [option]…[option]

Command
combinations:

)A???

Read three consecutive 32-bit words in Decimal, starting at
address A

)A$$$

Read three consecutive 32-bit words in Hex, starting at ad-
dress A

)A=n=m

Write the values n and m to two consecutive addresses start-
ing at address A

?)

Display useful RAM addresses.

Example:

)08$$$$

Reads data words 0x08, 0x0C, 0x10, 0x14

)04=FFFFAD2=9A23

Writes two hexadecimal words starting @ 0x04

)04=+1000

Writes decimal 1,000 to address 0x04

)04=-1000

Writes decimal -1,000 to address 0x04

MPU or XDATA space is the address range for the MPU XRAM (0x0000 to 0xFFF). All MPU data words are in 4-byte (32-bit)
format. Typing ]A? will access the 32-bit word located at the byte address 4 * A = 0x28. The energy accumulation registers of
the Demo Code can be accessed by typing two Dollar signs (“$$”), typing question marks will display negative decimal values
if the most significant bit is set.