Cirrus-logic AN366 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware Cirrus-logic AN366. Cirrus Logic AN366 User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 50
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
Copyright Cirrus Logic, Inc. 2012
(All Rights Reserved)
Cirrus Logic, Inc.
http://www.cirrus.com
Application Note
CS5480/84/90 Energy Measurement IC Calibration
1 Introduction
The Cirrus Logic CS5480/84/90 energy measurement IC is designed with industry-leading calibration algorithms
that simplify measurement applications. The CS5480/84/90 calibration is engineered so power meter manufacturers
can use low-cost components to achieve highly accurate power measurement. Calibration methods specified by IC
manufacturers can vary substantially despite the power meter manufacturers’ requirements to comply with tightly
regulated standards. This application note will introduce the procedures available for calibrating the CS5480/84/90
devices, empowering power meter manufacturers to exceed industry standards.
2Overview
This application note covers system scaling concepts, including hardware scaling, analog front end (AFE) scaling,
and controller (MCU) scaling. The relationship between full-scale measurements and AFE measurements is
discussed, and a corresponding application processor example is presented. The typical hardware configuration
required to perform calibration and compensation is also presented. Then the types of calibrations in the
CS5480/84/90 are detailed. The calibration and compensation procedure is provided in a step-by-step process that
determines the AFE calibration and compensation constants.
Flow diagrams are provided for each calibration and compensation process. The customer demonstration board
(CDB5484U) is used to illustrate the calibration process and provide examples of the serial port reads/writes
transmitted at each calibration step.
Below are the calibration essentials discussed in this document:
- System Scaling
- Types of Calibration and Compensation
- Calibration and Compensation Procedure
- Calibration and Compensation Example with Hardware Configuration
3 System Level Configurations
Upon power-up, the CS5480/84/90 requires an initial register configuration before executing power measurements.
One of the key configurations is adjusting the system scaling for the power meter application. The key scaling
constants are identified through calibration and compensations performed at the power meter manufacturer. After
the configuration and calibration constants are established, the calibration constants are downloaded during a
normal power-on reset. The application will start conversions and report power and input performance over time.
During power conversions and calculations, the analog inputs are sampled at 512 kHz, decimated down to 4kHz
high-rate conversion cycles. The high-rate samples are averaged to produce a 1 second low-rate power
accumulation measurement, which is used to update registers and, when enabled, generate pulses that represent
the power results (N = 4000, MCLK = 4.096 MHz). The CS5480/84/90 performs signal conditioning along the digital
data path, which improves the accuracy of the power meter measurements. Signal conditioning is provided in the
high-rate path (gain, phase, and DC offset) and in the lower rate path (no load current RMS offset, AC offset, active
and reactive power offset).
AN366
MAY’12
AN366REV2
Vista de página 0
1 2 3 4 5 6 ... 49 50

Resumo do Conteúdo

Página 1 - Application Note

Copyright  Cirrus Logic, Inc. 2012(All Rights Reserved)Cirrus Logic, Inc.http://www.cirrus.comApplication NoteCS5480/84/90 Energy Measurement IC Cali

Página 2 - 3.1 System Scaling Overview

AN36610 AN366REV2Current Scale RegisterTo perform calibration with less than full scale load without using the above procedure, it is possible to sett

Página 3 - 3.2 System Scale Example

AN366AN366REV2 11Figure 6. Phase Compensation and Phase Offset Error4.2.2 No Load Power CompensationThere are two power compensations in the CS5480/8

Página 4 - 3.3 AFE Scaling Range

AN36612 AN366REV25 Calibration and Compensation ProceduresA CS5480/84/90 power meter normally has two modes of operation: calibration, which is execut

Página 5

AN366AN366REV2 13START CONTINUOUS CONVERSION0xD5CLEARDRDYREAD IRMS,VRMS, PAVGDRDYSET?POWER UPRESTORE CONFIGURATION and CONTROL REGISTERSFrom NVMRESTOR

Página 6 - Hexidecimal

AN36614 AN366REV25.2 Full Calibration and Compensation Procedure (Performed Once at Factory)The following procedure shows the steps required to perfor

Página 7

AN366AN366REV2 15RESET(See Note 1)ROGOWSKISENSOR?ENABLEHIGH PASSFILTERENABLEINTEGRATOR on CURRENT & HIGH PASS on VOLTAGEFULL LOADAVAILABLE?APPLY R

Página 8 - 4.1 AFE Calibrations

AN36616 AN366REV2RESOLUTIONMULTIPLIER0.008789 (50Hz)(Note 1)-8.99º < PHASE OFFSET< +8.99º (50Hz)?(Note 2)PHASE OFFSETNEGATIVE?FINE COMPENSATION

Página 9

AN366AN366REV2 17FROM MAIN FLOWCLEAR DRDYSEND AC OFFSET CALIBRATION0xF6REMOVE LOAD CURRENTREAD IRMS,IACOFFDRDYSET?CHECKINPUTORFAILRETURNIACOFFto MAIN

Página 10 - 4.2 Available Compensations

AN36618 AN366REV26 Full Calibration and Compensation Example Using the CDB5484 and MTE Meter Test EquipmentThe calibration and compensation flows have

Página 11 - Delay added to V

AN366AN366REV2 19Figure 13. MTE Meter Test Equipment Calibration Hardware SetupMTE Meter Test Equipment AG PTS 400.3 Modular Portable Test SystemRefe

Página 12

AN3662 AN366REV23.1 System Scaling OverviewThe maximum voltage, current, and power measurements are unique in each meter design and dependent onthe se

Página 13 - Figure 7. Normal Field Flow

AN36620 AN366REV26.1 Normal Operation Flow Diagram Using the CDB5484The following flow diagram shows the implementation of normal flow executed in the

Página 14

AN366AN366REV2 21RESTORE REGISTERSVarious configurations include writes to registers (see Figure 14):Config 0 RegisterSDI = 0x80 0x40 0x400000 Write R

Página 15 - AN366REV2 15

AN36622 AN366REV2RESTORE GAIN CONFIGURATION(See Figure 15.)Gain Channel 1, Volt.SDI = 0x90 0x63 0x401BE3 Write Register V1 GainSDO = 0xFF 0xFF 0xFFFFF

Página 16 - 16 AN366REV2

AN366AN366REV2 23RESTORE OFFSET CONFIGURATION(See Figure 15.)DC Offset Channel 1, Volt.SDI = 0x90 0x62 0x000000 Write Register V1 DC OffsetSDO = 0xFF

Página 17

AN36624 AN366REV2RESTORE NO LOAD CONFIGURATION(See Figure 15.)P1 OffsetSDI = 0x90 0x64 0x000003 Write Register P1 Active Power OffsetSDO = 0xFF 0xFF 0

Página 18 - Equipment

AN366AN366REV2 25VALID REGISTER CHECKSUM?Read register checksum and compare to stored value in NVM (see Figure 17).SDI = 0x90 0x01 0xFFFFFF Read Regis

Página 19 - AN366REV2 19

AN36626 AN366REV2START CONTINUOUS CONVERSION(See Figure 18.)SDI = 0xD5 Send Continuous Conversion CommandFigure 18. Conversion WindowWAIT FOR TSETTLE

Página 20

AN366AN366REV2 27CLEAR DRDY in INTERRUPT STATUSSDI = 0x80 0x57 0x800000 Write DRDY Interrupt in Status 0SDO = 0xFF 0xFF 0xFFFFFF (Page 0, Register 23

Página 21 - AN366REV2 21

AN36628 AN366REV2Figure 19. Conversion WindowCALCULATE VOLTS, AMPS, AND WATTSChannel 1AMPS1 = HEX2DEC(I1RMS) / 0xFFFFFF / 0.6  FS_CurrentVOLTS1 = HE

Página 22 - 22 AN366REV2

AN366AN366REV2 296.2 Main Calibration Flow Diagram Using the CDB5484The following flow diagram shows the implemented of gain calibration using the CDB

Página 23 - AN366REV2 23

AN366AN366REV2 33.2 System Scale ExampleFigure 1 illustrates an example of the system scaling.Figure 1. System Scaling- Hardware Scale: The CS5480/84

Página 24 - Figure 16. Conversion Window

AN36630 AN366REV2SINGLE CONVERSIONThe register checksum is computed each time a conversion is completed (Single or Con-tinuous).(See Figure 21.)SDI =

Página 25 - Figure 17. Setup Window

AN366AN366REV2 31ENABLE HIGH PASS ON VOLTAGE AND CURRENT(See Figure 23.)SDI = 0x90 0x40 0x0602AA Write Register Config2 to enable HPFsSDO = 0xFF 0xFF

Página 26 - Figure 18. Conversion Window

AN36632 AN366REV2APPLY FULL-SCALE VOLTAGE TO SOURCE(See Figure 24.)Figure 24. Meter Test EquipmentSee Non-full-scale Gain Calibration on page 9.FULL

Página 27 - AN366REV2 27

AN366AN366REV2 33SET TSETTLE(See Figure 26.)SDI = 0x90 0x79 0x001F40 Write TSETTLE = 2000msSDO = 0xFF 0xFF 0xFFFFFF (Page 16, Register 57)SDI = 0x90 0

Página 28

AN36634 AN366REV2START CONTINUOUS CONVERSION(See Figure 28.)SDI = 0xD5 Write Continuous ConversionSDO = 0xFFFigure 28. Conversion WindowSTART CONTINU

Página 29 - POWER UP

AN366AN366REV2 35IS PF=1?PC/Controller tests if PF returned is 1.STOP CONVERSIONS(See Figure 29.)SDI = 0xD8 Write Halt ConversionSDO = 0xFFFigure 29.

Página 30 - Figure 22. Setup Window

AN36636 AN366REV2CHECK STATUS OF DRDYSDI = 0x80 0x17 0xFFFFFF Read INT STATUS DRDY (page 0, register 23)SDO = 0xFF 0xFF 0x4XXXXX (DRDY not Set)SDI =

Página 31 - Figure 23. Setup Window

AN366AN366REV2 37PERFORM AC OFFSET AND READ IRMSNote: AC offset is only required when IRMS measurements are needed with high dynamic range (only helpf

Página 32 - 32 AN366REV2

AN36638 AN366REV2Figure 33. Calibration WindowCHECK IF FULL LOAD IS AVAILABLEPC/Controller knows if full load or partial load set. The following step

Página 33 - Figure 27. Setup Window

AN366AN366REV2 39COMPUTE CALIBRATED REGISTER CHECKSUMThe register checksum is computed each time a conversion is completed (Single or Con-tinuous). If

Página 34 - Figure 28. Conversion Window

AN3664 AN366REV23.3 AFE Scaling RangeThe CS5484 full scale RMS register values are commonly reported as 0.6 when the inputs are at a maximumlevel. The

Página 35 - Figure 29. Conversion Window

AN36640 AN366REV26.2.1 Phase Compensation Flow DiagramThe following flow diagram shows the implemented of phase compensation using the CDB5484U and a

Página 36 - Figure 31. Conversion Window

AN366AN366REV2 41STOP CONVERSIONS(See Figure 37.)SDI = 0x90 0x15 0xFFFFFF Read PF1 (page 16, register 21)SDO = 0xFF 0xFF 0x410F40 (0.508278)SDI = 0x90

Página 37 - Figure 32. Setup Window

AN36642 AN366REV2PHASE OFFSETPC/Controller test for phase calibration range meet or fail meter. This example shows neg-ative phase offset.Figure 38.

Página 38 - 38 AN366REV2

AN36643ACCUMULATE MULTIPLE PF READING AND CONFIRM(See Figure 39.)SDI = 0x90 0x15 0xFFFFFF Read PF1 (page 16, register 21)SDO = 0xFF 0xFF 0x410F40 (0.5

Página 39 - AN366REV2 39

AN366446.2.2 AC Offset Calibration Flow DiagramThe following flow diagram shows the implemented of AC offset calibration using the CDB5484U and a PCas

Página 40

AN36645SEND AC OFFSET CALIBRATION(See Figure 41.)SDI = 0xF6 Write AC Offset Calibration – All ChannelsSDO =0xFFFigure 41. Calibration WindowDRDY SE

Página 41 - Figure 37. Conversion Window

AN366466.2.3 DC Offset Calibration Flow DiagramThe implemented of DC offset calibration follows the same structure as AC offset except that the voltag

Página 42 - 42 AN366REV2

AN366476.2.4 No Load Offset Compensation Flow DiagramThe following flow diagram shows the implemented of no load power offset compensation using theCD

Página 43 - Figure 39. Conversion Window

AN36648ACCUMULATE MULTIPLE PAVG, QAVG READINGS(See Figure 44.)Channels 1 and 2, Active PowerSDI = 0x90 0x05 0xFFFFFF Read P1AVG (page 16, register 5)S

Página 44

AN36649SET POFF AND QOFFNegate PAVG and QAVG registers and store in POFF and QOFF respectively (seeFigure 44).SDI = 0x90 0x64 0xFFFFFF Write P1OFF (pa

Página 45

AN366AN366REV2 53.4 Application Processor Scaling ExampleThe scaling example below demonstrates how to convert from the current register value to the

Página 46

AN36650Revision HistoryRevision Date ChangesREV1 APR 2012 Initial release.REV 2 MAY 2012 Corrected typographical errors.Contacting Cirrus Logic Suppor

Página 47

AN3666 AN366REV2Use Equation 5 to convert the hexadecimal value to a decimal ratio value:Using Equation 5, the following table identifies the key valu

Página 48 - Figure 44. Conversion Window

AN366AN366REV2 7Figure 4 illustrates a typical hardware configuration for calibration and compensation:Figure 4. Calibration and Compensation Hardwar

Página 49

AN3668 AN366REV24.1 AFE CalibrationsThe CS5480/84/90 AFE incorporates three calibrations: gain, AC offset, and DC offset. Gain calibration is al-ways

Página 50 - Revision History

AN366AN366REV2 94.1.2.2 Non-full-scale Gain CalibrationWhen resources are limited, it may be necessary to provide non-full-scale amplitudes and perfor

Comentários a estes Manuais

Sem comentários