beautypg.com

2 reset commands, 3 mpu data access command, 1 individual address read – Maxim Integrated 6612_OMU_S2_URT_V1_13 User Manual

Page 7: 2 consecutive read, Reset commands, Mpu data access command, Individual address read, Consecutive read

background image

FDD_6612_ 010

6612_OMU_S2_URT_V1_13 Firmware Description Document

Rev. 1.1

7

4.2 Reset Commands

A soft reset of the 78M6612 can be performed by using the Z command. The soft reset restarts code
execution at addr 0000 but does not alter flash contents. To issue a soft reset to the 78M6612, the host
sends the following:

>Z

The W command acts like a hardware reset. The energy accumulators in XRAM will retain their values.

Z

Reset

Description:

Allows the user to cause soft resets.

Usage:

Z

Soft reset.

W

Simulates watchdog reset.


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 page 39).

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.