7 command line interface (cli) description, 1 identification and information commands, 2 reset commands – Maxim Integrated 78M6631 User Manual

Page 29: 3 data access commands, Command line interface (cli) description, Identification and information commands, Reset commands, Data access commands

Advertising
background image

UG_6631_078

78M6631 Firmware Description Document

Rev 2

29

7 Command Line Interface (CLI) Description

The 78M6631 firmware implements an interface/protocol to the user or host called Command Line

Interface (CLI). This interface facilitates communication via UART between the 78M6631 and the host

processor. The CLI provides a set of commands which are used by the host to configure and to obtain

information from the 78M6631.

7.1 Identification and Information Commands

The I command is used to identify the revisions of demo code and the contained CE code. The host

sends the I command to the 78M6631 as follows:

>I<CR>

The 78M6631 will reply to the host the following:

TSC 78M6631 rev B725

>

7.2 Reset Commands

A soft reset of the 78M6631 can be performed by using the Z command. The soft reset restarts code

execution at addr 0000 but does not alter XRAM contents. The soft reset also sets all the registers to their

default values. To issue a soft reset to the 78M6631, the host sends the following:

>Z<CR>

The W command acts like a hardware reset. The energy accumulators in XRAM will reset back to zero.

Z

Reset

Description:

Allows the user to cause soft resets.

Usage:

Z

Soft reset.

W

Simulates watchdog reset.

7.3 Data Access Commands

All the measurement calculations are stored in the data range of the 78M6631. The host requests

measurement information using the data access command which is a right parenthesis

)

To request information, the host sends the 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

.

Advertising