beautypg.com

5 mpu/xdata access commands, Mpu/xdata access commands – Maxim Integrated 6612_OMU_S2+2_URT_V1_14 User Manual

Page 10

background image

6612_OMU_S2+2_URT_V1_14 Firmware Description Document

UG_6612_017

10

Rev. 1.0

4.3.5 MPU/XDATA Access Commands

)

MPU Data Access

Description:

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

Usage:

) {Starting MPU Data Address} {option}…{option}

Command
Combinations:

)saddr?

Read the register in decimal.

)saddr??

Read two consecutive registers in decimal.

)saddr???

Read three consecutive registers in decimal.

)saddr:eaddr?

Block read command in decimal format. Read
consecutive registers starting with starting
address saddr and ending with address eaddr.
Results given in decimal.

)saddr$

Read the register word in hex.

)saddr$$

Read two consecutive register words in hex.

)saddr$$$

Read three consecutive register words in hex.

)saddr:eaddr$

Block read command in hex format. Read
consecutive registers starting with starting
address saddr and ending with address eaddr.
Results given in hex.

)saddr=n

Write the value n to address saddr in hex format.

)saddr=n=m

Write the values n and m to two consecutive
addresses starting at saddr in hex format.

)saddr=+n

Write the value n to address saddr in decimal
format.

)saddr=+n=+m

Write the values n and m to two consecutive
addresses starting at saddr in decimal format.

Examples:

)08$

Reads data word 0x08 in hex format.

)08$$

Reads data words 0x08, 0x09 in hex format.

)08$$$

Reads data words 0x08, 0x09, 0x0A in hex
format.

)28:4D$

Read Outlet 1 narrowband data words in hex.

)08?

Reads data word 0x08 in decimal format.

)08??

Reads data words 0x08, 0x09 in decimal format.

)08???

Reads data words 0x08, 0x09, 0x0A in decimal
format.

)28:4D?

Read Outlet 1 wideband data words in decimal.

)04=12345678

Writes word @ 0x04 in hex format.

)04=12345678=9876ABCD

Writes two words starting @ 0x04 in hex format.

)04=+123

Writes word @ 0x04 in decimal format.

)04=+123=+334

Writes two words starting @ 0x04 in decimal
format.

MPU or XDATA space is the address range for the MPU XRAM (0x00 to 0x7F). Addresses
from 0x80 to FF wrap to 0x00 to 0x7F. The MPU registers differ in size, LSBs and format.