Maxim-integrated 78M6612 M-API Library Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Maxim-integrated 78M6612 M-API Library. Maxim Integrated 78M6612 M-API Library User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - User Guide

A Maxim Integrated Products Brand 78M6612 M-API Library User Guide September 30, 2010 Rev. 1.00 UG_6612_0

Page 2

78M6612 M-API Library User Guide UG_6612_036 10 Rev. 1.00 3 Build Environment and Software/Firmware Configurations The Metrology Application Prog

Page 3 - Table of Contents

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 11 3.2.2 RAM/Data Memory The 78M6612 has 2K bytes of Data Memory for exclusive use by the e

Page 4

78M6612 M-API Library User Guide UG_6612_036 12 Rev. 1.00 Metering 6K Metrology functions (alarms, power factor, RMS, etc.) Measurement 2K Met

Page 5 - 1 Introduction

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 13 3.3.3 Library Assignment The firmware application source code, as shipped with this

Page 6

78M6612 M-API Library User Guide UG_6612_036 14 Rev. 1.00 3.3.4 Module’s Selection within a Library The M-API libraries are organized into se

Page 7 - 1.3 Library Parameters

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 15 Table 6: MAPI Feature/Module Selections Module Optional (O)/Mandatory (M) Description ?C

Page 8 - 1.4 Reference Documentation

78M6612 M-API Library User Guide UG_6612_036 16 Rev. 1.00 The following figure shows the Keil IDE/UV4 IDE menu where the module can be selected or

Page 9 - 2 Firmware Partitions

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 17 4 MAPI Libraries The following sections describe the available MAPI calls supported by t

Page 10 - 3.2 Program and RAM Memory

78M6612 M-API Library User Guide UG_6612_036 18 Rev. 1.00 4.2 Library Inputs and Outputs 4.2.1 MAPI_GetSetRegister() Purpose Get or Set the val

Page 11 - 3.3 Build Configuration

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 19 Parameters Operation Input parameter. WRITE(1) – Set Operation, READ(0) – Get Operatio

Page 12

78M6612 M-API Library User Guide UG_6612_036 Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a

Page 13 - 3.3.3 Library Assignment

78M6612 M-API Library User Guide UG_6612_036 20 Rev. 1.00 4.2.1.1 Auto-Scaling When retrieving measurement data using the MAPI_GetSetRegister() c

Page 14

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 21 4.2.1.3 MPU Library Inputs The following inputs can be modified (and saved to Flash) usi

Page 15

78M6612 M-API Library User Guide UG_6612_036 22 Rev. 1.00 4.2.1.4 CE Library Inputs The following inputs can only be modified (and saved to Flas

Page 16

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 23 4.3 CE and MPU Control 4.3.1 MAPI_CEOn() Purpose Turn CE on. After calling MAPI_Init(

Page 17 - 4 MAPI Libraries

78M6612 M-API Library User Guide UG_6612_036 24 Rev. 1.00 4.3.5 MAPI_HardReset() Purpose Reset the MPU, this includes stopping the CE, and setti

Page 18 - 4.2.1 MAPI_GetSetRegister()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 25 4.4 Calibration and Power Measurement 4.4.1 MAPI_CalSetGet() Purpose Set or Get Calibr

Page 19

78M6612 M-API Library User Guide UG_6612_036 26 Rev. 1.00 Parameters SetData Input parameter. TRUE(1) – Set calibration data as specified in MP

Page 20

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 27 4.4.2 MAPI_Calibrate() Purpose Calibrate the part using referenced meter values and tol

Page 21

78M6612 M-API Library User Guide UG_6612_036 28 Rev. 1.00 Outlets Input parameter Bit representations of outlet # to be calibrated. For ex

Page 22

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 29

Page 23 - 4.3 CE and MPU Control

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 3 Table of Contents 1 Introduction ...

Page 24 - 4.3.5 MAPI_HardReset()

78M6612 M-API Library User Guide UG_6612_036 30 Rev. 1.00 4.4.4 MAPI_TimeToAverage() Purpose Set/Get the time increment (in seconds) in which th

Page 25 - 4.4.1 MAPI_CalSetGet()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 31 4.4.6 MAPI_GetVoltageCurrent() Purpose Get the current values of Voltage and Current .

Page 26

78M6612 M-API Library User Guide UG_6612_036 32 Rev. 1.00 4.5 Zero Crossing and Relay Control 4.5.1 MAPI_RelayConfig() Purpose Read/Write relay

Page 27 - 4.4.2 MAPI_Calibrate()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 33 4.5.2 MAPI_RelayControl () Purpose Turning Relay ON/OFF (close/open circuit) on all cha

Page 28 - 4.4.3 MAPI_MeterStatus()

78M6612 M-API Library User Guide UG_6612_036 34 Rev. 1.00 4.6 Soft-Timers There are eight soft-timers in the 8051 Timer 0. Only six of these tim

Page 29 - Rev. 1.00 29

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 35 4.7 DIO Configuration (future release) 4.7.1 MAPI_DIOConfig() Purpose Configure the

Page 30 - 4.4.5 MAPI_GetEnergyUsed()

78M6612 M-API Library User Guide UG_6612_036 36 Rev. 1.00 4.7.2 MAPI_DIORW() Purpose Perform the Read/Write operation of/to the DIO. Synopsis

Page 31

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 37 4.8 Flash Management 4.8.1 Memcpy_rx() Purpose Write to Flash the content data from a

Page 32 - 4.5.1 MAPI_RelayConfig()

78M6612 M-API Library User Guide UG_6612_036 38 Rev. 1.00 4.8.2 Memcpy_xr() Purpose Use to write to Flash the content data to a specific RAM loc

Page 33 - 4.5.4 MAPI_OpenCircuit_0X()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 39 4.9 Serial/RS232 Interface 4.9.1 MAPI_UARTInit() Purpose Configure the communication s

Page 34 - 4.6 Soft-Timers

78M6612 M-API Library User Guide UG_6612_036 4 Rev. 1.00 4.7 DIO Configuration (future release) ...

Page 35 - 4.7.1 MAPI_DIOConfig()

78M6612 M-API Library User Guide UG_6612_036 40 Rev. 1.00 4.9.3 MAPI_TxLen() Purpose Number of bytes transmitted thus far. Synopsis Unsigned

Page 36 - 4.7.2 MAPI_DIORW()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 41 5 Default Values The following default values are used to build the MAPI library: struc

Page 37 - 4.8 Flash Management

78M6612 M-API Library User Guide UG_6612_036 42 Rev. 1.00 6 Contact Information For more information about Maxim products or to check the avail

Page 38 - 4.8.3 Memcpy_xx()

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 43 Revision History Revision Date Description 1.00 09/30/2010 First publication.

Page 39 - 4.9 Serial/RS232 Interface

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 5 1 Introduction This document describes the Metrology Application Programming Interface (M

Page 40 - 4.9.5 MAPI_RxLen()

78M6612 M-API Library User Guide UG_6612_036 6 Rev. 1.00 1.2 Library Measurement Equations The integrated Compute Engine (CE) accumulates the raw

Page 41 - 5 Default Values

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 7 1.3 Library Parameters This section describes critical constants and variable parameters

Page 42 - 6 Contact Information

78M6612 M-API Library User Guide UG_6612_036 8 Rev. 1.00 1.3.3 Example Calculation of Sensor Parameters This example demonstrates the calculation

Page 43 - Revision History

UG_6612_036 78M6612 M-API Library User Guide Rev. 1.00 9 2 Firmware Partitions The 78M6612 firmware provided by Teridian is partitioned into three

Commentaires sur ces manuels

Pas de commentaire