beautypg.com

An366 – Cirrus Logic AN366 User Manual

Page 36

background image

AN366

36

AN366REV2

CHECK STATUS OF DRDY
SDI = 0x80

0x17 0xFFFFFF

Read INT STATUS DRDY (page 0, register 23)

SDO = 0xFF

0xFF 0x4XXXXX

(DRDY not Set)

SDI = 0x80

0x17 0xFFFFFF

Read INT STATUS DRDY (page 0, register 23)

SDO = 0xFF

0xFF 0xCXXXXX

(DRDY Set)

READ POWER REGISTERS
(See Figure 31.)
SDI = 0x90

0x06 0xFFFFFF

Read I1RMS

(page 16, register 6)

SDO = 0xFF

0xFF 0x40081D

(0.2501238)

SDI = 0x90

0x0C 0xFFFFFF

Read I2RMS

(page 16, register 12)

SDO = 0xFF

0xFF 0x40086D

(0.2501286)

SDI = 0x90

0x07 0xFFFFFF

Read V1RMS

(page 16, register 7)

SDO = 0xFF

0xFF 0x99ACE6

(0.6002945)

SDI = 0x90

0x0D 0xFFFFFF

Read V2RMS

(page 16, register 13)

SDO = 0xFF

0xFF 0x99ADA6

(0.600306)

SDI = 0x90

0x05 0xFFFFFF

Read P1AVG

(page 16, register 5)

SDO = 0xFF

0xFF 0x133936

(0.1501835)

SDI = 0x90

0x0B 0xFFFFFF

Read P2AVG

(page 16, register 11)

SDO = 0xFF

0xFF 0x133966

(0.1501892)

SDI = 0x90

0x1D 0xFFFFFF

Read PSUM

(page 16, register 29)

SDO = 0xFF

0xFF 0x266DFD

(0.3002316)

SDI = 0x90

0x1E 0xFFFFFF

Read QSUM

(page 16, register 30)

SDO = 0xFF

0xFF 0x000616

(0.0001857)

SDI = 0x90

0x1F 0xFFFFFF

Read SSUM

(page 16, register 31)

SDO = 0xFF

0xFF 0x266E40

(0.3002396)

Figure 31. Conversion Window

PROPER CALIBRATION RESULTS?
PC/Controller should test for proper calibration results.

PERFORM NO LOAD COMPENSATION
No Load Offset Compensation Flow Diagram on page 47

READ IRMS,

VRMS, PAVG,

PSUM, QSUM,

SSUM

DRDY
SET ?

VRMS = 0.6 ?

IRMS = SCALE(0.6)?

PAVG = 0.36 ?

CHECK

SETUP or

FAIL

SCALE = 0.25, Therefore

IRMS = 0.25 after calibration

YES

NO

YES

NO

12

YES

NO

11

PERFORM

NO LOAD

COMPENSATION

& READ PAVG