1 individual address read, 2 consecutive read, 3 block reads – Maxim Integrated 78M6631 User Manual

Page 30: 4 concatenated reads, Individual address read, Consecutive read, Block reads, Concatenated reads

Advertising
background image

78M6631 Firmware Description Document

UG_6631_078

30

Rev 2

7.3.1 Individual Address Read

The host can request the information in hex or decimal format. In an address read command, the

character $ requests the information to be returned in hex format. While the character ?, requests

information to be returned 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 output located at address 0x28 in decimal is as

follows:

>)28?<CR>

An example of a command requesting the measured output located at address 0x28 in hex is as follows:

>)28$<CR>

7.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 0x32 is:

>)32??????????<CR>

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

>)32$$$$$$$$$$<CR>

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

7.3.3 Block Reads

The block read command can also be used to read consecutive registers.

For decimal format:

)startaddress:endaddress?

For hexadecimal format:

)startaddress:endaddress$

The following block read command requests a block of measurement information in decimal format:

>)20:3D?<CR>

7.3.4 Concatenated Reads

Multiple commands can also be added on a single line. Requesting information in decimal from two

locations and the block command from above are given below:

>)32?)35?)20:2E?<CR>

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

Advertising