MAXQ3181 Maxim, MAXQ3181 Datasheet - Page 21

no-image

MAXQ3181

Manufacturer Part Number
MAXQ3181
Description
The MAXQ3181 is a dedicated electricity measurement front-end that collects and calculates polyphase voltage, current, active power and energy, and many other metering parameters of a polyphase load
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MAXQ3181-RAN
Manufacturer:
MAXIM/美信
Quantity:
20 000
Part Number:
MAXQ3181-RAN+
Manufacturer:
ST
Quantity:
101
example, if synchronization is lost), the host only needs
to wait for the SPI to time out before restarting commu-
nication from the first command byte. SPI timeout count
starts after receiving the first command byte from the
master (after the 8th SPI clock of the first byte). The
count stops and clears after receiving the last byte of a
transaction (after the 8th SPI clock of the last byte).
If the timeout count expires (exceeds COM_TIMO)
before the transaction completes, the MAXQ3181 aban-
dons the unfinished transaction and resets the SPI logic
to be ready for the next transaction. The default SPI
timeout is 320ms.
Table 2. Command Format for SPI Register Write
(Last data byte)
(1st data byte)
(N + 1) byte
Sync bytes
2nd byte
Nth byte
1st byte
3rd byte
BYTE
...
Low-Power, Active Energy, Polyphase AFE
______________________________________________________________________________________
Master sends command;
Slave sends 0xC1 byte
Master sends address;
Slave sends 0xC2 byte
Master sends data;
Slave sends ACK (0x41)
Master sends data;
Slave sends ACK (0x41)
Master sends CRC;
Slave sends ACK (0x41)
Master sends dummy;
Slave sends ACK (0x41) or
NACK (0x4E) byte
TRANSFERS
...
BIT
7:6
5:4
3:0
7:0
7:0
7:0
7:0
7:0
...
Command code:
Data Length:
MSB portion of data address.
LSB portion of data address.
Data, LSB
Data, MSB
Optional CRC
Master sends dummy byte; Slave responds with NACK if busy,
or with ACK when processing complete.
Master must receive ACK before starting the next transaction.
00 Read
01 Reserved
10 Write
11 Reserved
00 1 Byte
01 2 Bytes
10 4 Bytes
11 8 Bytes
Optionally, a CRC byte can be appended to each
transaction. For write commands, the CRC byte is sent
by the master, and for read commands the CRC byte is
sent by the MAXQ3181. The CRC mode is enabled
when the CRCEN bit is set to 1 in OPMODE1 register.
Otherwise, the MAXQ3181 assumes no CRC byte is
used. The 8-bit CRC is calculated for all bytes in a
transaction, from the first command byte sent by the
master through the last data byte excluding sync bytes,
using the polynomial P = x
mitted CRC byte does not match the calculated CRC
byte (for a write command), the MAXQ3181 ignores the
command.
DESCRIPTION
...
8
+ x
5
+ x
4
+ 1. If the trans-
21

Related parts for MAXQ3181