beautypg.com

3 mpu data access command, 1 individual address read, 2 consecutive read – Maxim Integrated 6612_OMU_S2+2_URT_V1_14 User Manual

Page 8: Mpu data access command, Individual address read, Consecutive read

background image

6612_OMU_S2+2_URT_V1_14 Firmware Description Document

UG_6612_017

8

Rev. 1.0

4.3 MPU Data Access Command

The most pertinent is the MPU data access command. All the measurement calculations are stored in the
MPU data addresses of the 78M6612. The host requests measurement information using the MPU data
access command which is a right parenthesis

)

To request information, the host sends the MPU data access command, the address (in hex) which is
requested, the format in which the data is desired (Hex or Decimal) and a carriage return. The contents
of the addresses that would be requested by the host are contained in

Section 5

.

4.3.1 Individual Address Read

The host can request the information in hex or decimal format. $ requests information in hex, and ?
requests information in decimal. When requesting information in decimal, the data is preceded by a + or
a -. The exception is )AB? which returns a string (see the

AB

description).


An example of a command requesting the measured power in Watts from Outlet 1 (located at address
0x08) in decimal is as follows:

>)08?

An example of a command requesting the measured power in Watts from Outlet 1 (located at address
0x08) in hex is as follows:

>)08$

4.3.2 Consecutive Read

The host can request information from consecutive addresses by adding additional ? for decimal or
additional $ for hex.

An example of requests for the contents in decimal of ten consecutive addresses starting with 0x12 is:

>)12??????????

An example of requests for the contents in hex of ten consecutive addresses starting with 0x12 would be:

>)12$$$$$$$$$$

Note: The number of characters per line is limited to no more than 60.