Three-Phase Power Meter Hardware Design Reference Manual

Similar documents
FRDM-K64F Board Errata

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

Freedom FRDM-MC-LVBLDC Development Platform User s Guide

Working around ERR7026 according to application needs

Processor Expert Software for i.mx Processors Version 1.0

HVP-KV10Z32 User s Guide

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

HVP-KV31F120M User s Guide

FRDM-KL03Z User s Guide

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

Adding a run control interface into an existing CodeWarrior for MCU v10.x project

Smart Plug Software Design Reference Manual

Getting Started with Freescale MQX RTOS for Kinetis SDK and ARM GCC

Quick Start Guide for FRDM-FXS-MULTI-B

Emulating Dual SPI Using FlexIO

Freedom FRDM-KV31F Development Platform User s Guide

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

Watt Saver Software Component (WSC)

i.mx 6Solo/6DualLite Product Lifetime Usage Estimates

FRDM-KE02Z User s Manual

TWR-LS1021A Getting Started

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

TWR-LS1021A Getting Started

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

Kinetis USB-KW41Z Wireless Protocol Sniffer Quick Start Guide

Kinetis KM3x Metrology MCUs based on ARM Cortex -M0+ Core

Offline Flash Programmer for Kinetis K- and L-series MCUs

DDR Validation Tool Getting Started Guide

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

Flash Core Voltage Supply Requirements and Considerations

Freescale Kinetis Software Development Kit Release Notes

Kinetis KE1xF512 MCUs

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

Building U-Boot in CodeWarrior ARMv8

Power Consumption and Measurement of i.mx RT1020

FRDM-KL26Z User s Guide

Kinetis SDK v Release Notes for KV5x Derivatives

Kinetis Bootloader to Update Multiple Devices in a Field Bus Network

Integrate TWR-EPD Software with MQX RTOS Based on the TWR-K21F120M Platform

HVP-MC56F82748 User s Guide

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

Understanding S08P Internal Clock Source

i.mx 6ULL Product Usage Lifetime Estimates

i.mxrt1050 Product Lifetime Usage Estimates

Kinetis Bootloader v1.2.0 Release Notes

Getting Started with the MCU Flashloader

TWR-KM34Z50MV3 Quick Start Guide

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Using DMA for Pulse Counting on S32K

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

Getting Started with MQX RTOS for Kinetis SDK

i.mx 7 Dual/Solo Product Lifetime Usage

P1010RDB-PB Quick Start Guide

Emulating I2C Bus Master by using FlexIO

i.mx 6UltraLite Product Usage Lifetime Estimates

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

Freescale MQX USB Stack for TWR-K24F120M GA User s Guide

HVP-56F82748 Quick Start Guide

Freescale Semiconductor Data Sheet: Technical Data

PCIe Certification Guide for i.mx 6Dual/6Quad and i.mx 6Solo/6DualLite

Using an FFT on the Sigma-Delta ADCs

Generating a Quick and Controlled Waveform With the DAC

Quick Start Guide for TWR-S08MM128-KIT TOWER SYSTEM MC9S08MM128. The industry s most complete solution for portable medical applications

Freescale MKW40Z IEEE Software Quick Start Guide

Reference Design KL25-AGMP01 User Guide 10-Axis Data Logger Tool Kit

How to Implement USB Suspend/Resume Feature with MCUXpresso SDK USB Stack

General C Functions for the etpu Covers the MCF523x, MPC5500, MPC5600, MPC5700, MPX40 and all etpu-equipped Devices

MMPF0100 Errata for Mask 1N47F and 1N18J

Collecting Linux Trace without using CodeWarrior

How to setup pre-build steps in CodeWarrior for Microcontrollers v10.x

PMSM Field-Oriented Control Using MC56F84789 DSC With Encoders Demo Guide

i.mx 6 Android JB 4.3_1.1.1 Patch Release Notes

FRDM-KE04Z User s Guide User Guide

How to use FlexMemory as D-Flash and EEPROM in KE1xF

S12VR Hardware Design. Guidelines. 1 Introduction. 2 Hardware Design. Guidelines. 2.1 Voltage regulator. Freescale Semiconductor

Emulating I2S bus on KE06

How to Enable Boot from QSPI Flash

KIT33972AEWEVBE Evaluation Board

TWR-KL28Z User s Guide

KW40 ZumoBot Reference Design

Freescale MQX RTOS TWR-K64F120M Release Notes

Kinetis KV5x Real-Time Control MCUs with Ethernet Up to 1 MB Flash and 256 KB SRAM

Kinetis KL1x General-Purpose Ultra-Low- Power MCUs Up to 256 KB Flash and 32 KB SRAM

Quick Start Guide for FRDM-KL46Z Rev 1

Quick Start Guide for FRDM-KL05Z

Single Chip Module (SCM) Package-on- Package (PoP) Assembly Guide

TWR-KL43Z48M Quick Start Guide

KIT34901EFEVB Evaluation Board

Three-Phase Power Meter Software Design Reference Manual

Getting Started with MCUXpresso SDK CMSIS Packs

Quick Start Guide for FRDM-KL46Z Rev 1

SPI topics: watchdog, serial output and parity check

High Volume Pressure Sensor for Disposable Applications

MPXH6300A, 20 to 300 kpa, Absolute, Integrated, Pressure Sensor

MPXHZ6130A, 15 to 130 kpa, Absolute, Integrated Pressure Sensor

Getting Started with FreeRTOS BSP for i.mx 7Dual

Transcription:

Freescale Semiconductor, Inc. Document Number: DRM146 Design Reference Manual Rev. 0, 03/2014 Three-Phase Power Meter Hardware Design Reference Manual by: Albert Chen and Shawn Shi 1 Overview Freescale three-phase power meter reference design is structured in accordance with the standard by China state grid corporation Q/GDW 354 2012 (functional specification for smart electricity meters), Q/GDW 356 2012 (the type specification for smart poly-phase electricity meters). The reference design aims at shortening time to market for power meter customers and partners, and it can be tailored to customer s unique need in powering system. Contents 1 Overview...1 2 Introduction...2 3 Demo board content...4 4 Demo board hardware features...6 5 Three-phase power meter demo board...6 5.1 System power...6 5.2 Clock...7 5.3 Debug interface...8 5.4 Voltage sampling...9 5.5 Current sampling...10 5.6 Frequency measuring...11 5.7 External memory...11 5.8 Tamper protection...12 5.9 Pulse output...13 5.10 RS485 interface...14 5.11 LCM display...15 5.12 Backlight control...15 5.13 Jumper table...16 6 Conclusions...16 7 References...16 8 Revision history...16 2014 Freescale Semiconductor, Inc.

2 Introduction The three-phase power meter reference design is uses the Freescale ARM Cortex -M0+ core 44PIN KM14 as the metering IC and ARM Cortex-M0+ KL36 core 100PIN KL36 as the IC controller. The reference design primarily consists of a power board, main control board, and LCM board. Figure 1, Figure 2, and Figure 3 represent the block diagram of power board, control board, and LCM board respectively. Figure 1. Power board block diagram 2 Freescale Semiconductor, Inc.

Figure 2. Control board block diagram Freescale Semiconductor, Inc. 3

Figure 3. LCM board block diagram 3 Demo board content Figure 4. Power board top side content 4 Freescale Semiconductor, Inc.

Figure 5. Control board top side content Figure 6. LCM board top side content Freescale Semiconductor, Inc. 5

4 Demo board hardware features The Freescale three-phase power meter includes the following hardware features: ARM Cortex-M0+ core MKM14Z64CHH5, 44 LGA (5 mm x 5 mm), 50 MHz, 64 KB Program flash memory, and 16 KB SRAM. ARM Cortex-M0+ core MKL36Z256VLL4, 100 LQFP (14 mm x 14 mm), 48 MHz, 256 KB Program flash memory, and 32 KB SRAM. 3 220/380 V voltage input to generate two isolated 5 V DC output, one is used for the system while the other is used for 485 communication. Current sampling: using 0.05% accuracy CT, 25ppm shunt, and 24-bit SD ADC. Voltage sampling: using 25ppm resistor divider, 16-bit SAR ADC. KM14 internal ACMP module used for zero cross point detection. 5PPM RTC achieved using external 0.5C resolution temporary sensor, external 32.768 Hz crystal, and internal RTC module. Two isolated RS485 output in half duplex mode, ISL3152EIBZ used. Infrared circuit use AT205B as transmitter and TSOP4838 as receiver. External 512 KB I2C EEPROM 24LC512, 64 MB SPI Flash MX25L6406EM2I-12G used as memory extension. 3 isolated electrical pulse output, 3 light pulse output used for meter calibration/indication/test. Tamper protection: Temper input pin detection for box opening, I 2 C based magnetic sensor for activity detection. Display: I 2 C port based LCD drive chip HT16C23 and JIYA 8*32 LCD display module used with backlight control. 5 Three-phase power meter demo board 5.1 System power The demo board is powered by 220 V AC, the power board will transfer the grid AC voltage into two isolated linear 5 V DC outputs. One 5 V DC output is used to power the MCU system while the other is used for isolated RS485 communication. In power line off mode, the system will use 6 V lithium battery as backup power. Also, there is one 3.6 V battery which powers the RTC alone and should work for the duration of the meter s life. Because the MCU system requires 3.3 V DC input, it must use LDO to transfer the 5 V input to 3.3 V output in system. This LDO needs to be low in quiescent current and low in noise. 6 Freescale Semiconductor, Inc.

Figure 7. DC power supply Figure 8. External VREF supply option 5.2 Clock The KM14 system is uses an external 32.768 KHz crystal, while the KL36 system uses an 8 MHz external crystal. For the Km14 system, a Citizen +/-20ppm 32.768 KHz crystal is used. This crystal can be used for RTC clock generation, which requires high consistency in production. For the Kl36 system, an Abracon +/-20ppm 8 MHz crystal is used. The customer can use an internal RC clock as an alternate. Freescale Semiconductor, Inc. 7

Figure 9. Oscillator circuit 5.3 Debug interface Both the KM14 and KL36 system use a SWD debug port. The customer can use Jlink and Multilink tools to develop and debug the code. The software uses an IAR tool chain and only needs to configure the IDE to run the selected hardware debugger. Figure 10. KL debug port Figure 11. KM debug port 8 Freescale Semiconductor, Inc.

5.4 Voltage sampling Power line voltage sampling is uses a 16-bit SAR ADC, 220 V AC transfer to around 0.17V AC using a resistor divider, then the circuit adds 0.6 V DC offset to this AC signal before putting into SAR ADC for sampling. The 0.6 V DC offset is generated using the KM14 internal 1.2 V VREF output and external amplifier divider circuit by default. There is an option for using external 1.2 V VREF for the system which also requires software switch configuration. Figure 12. Voltage sampling circuit Freescale Semiconductor, Inc. 9

5.5 Current sampling Current sampling is uses AFE 24-bit ΣΔ ADC module, load current is through the original side of CT(5/60A current, 0.05% accuracy, 2000 ratio). The second side current will pass through the 4.7R shunt resistor to generate differential voltage to ΣΔ ADC. Figure 13. Current sampling circuit 10 Freescale Semiconductor, Inc.

5.6 Frequency measuring Grid AC frequency is monitored using a Photon internal ACMP module. The ACMP module has two inputs. One of the ACMP inputs is the AC voltage after resistor divider and adding offset while the other ACMP input is 0.6 V offset. Figure 14. Frequency measuring circuit option 5.7 External memory The system uses 512 KB EEPROM which is based on the I 2 C port and 64 MB SPI flash for memory extension. The choice of memory type and size is quite application-dependent, so those memories are reserved for customer application usage; only low level read/write logic is implemented in the software. Figure 15. External SPI based flash Figure 16. External I 2 C based EEPROM Freescale Semiconductor, Inc. 11

5.8 Tamper protection There are various types of tamper protection available in the system, few of them are as follows: Tamper detection pin: It monitors the box open action. Magnetic sensor: It detects the activity in the system. Voltage missing mode: The system can enter into low-power mode and periodically sample the current to prevent tampering. Figure 17. Tamper input circuit Figure 18. Magnetic sensor 12 Freescale Semiconductor, Inc.

5.9 Pulse output The power meter has an isolated electrical output and light pulse output, which is used for accuracy test/calibration, RTC test/calibration, and status indication. Figure 19. Isolated pulse output circuit Figure 20. Light pulse output circuit Freescale Semiconductor, Inc. 13

5.10 RS485 interface The power meter system has two isolated RS485 port. Those ports are in half-duplex mode and could be used for multiple purposes by end users. Figure 21. Isolated RS485I circuit Figure 22. Isolated RS485II circuit 14 Freescale Semiconductor, Inc.

5.11 LCM display The power meter system has the LCM display which uses the HT16C23 LCD drive IC and 8*32 segment LCD display. In application, the KL36 will send data periodically to HT16C23 to update the content displayed on segment LCD. Figure 23. LCM display 5.12 Backlight control The LCM module uses 2*15 ma diodes as backlight. The system could switch it on/off according to the application. Figure 24. LCD backlight control circuit Freescale Semiconductor, Inc. 15

5.13 Jumper table Table 1. System jumper table option Jumper Option Setting Description J2 RTC power supply 1-2 RTC power supply on J3 System 3.3V power supply 1-2 System power supply on J38 External VREF power supply off Internal VREF is used by default J30 ACMP pin function multiplexed with debugging port on Switch SWD_IO_KM/CMP0_P2 pin as ACMP function during demo J31 ADC pin function multiplexed with debugging port on Switch SWD_CLK_KM/AD6 pin as ADC function during demo 6 Conclusions This design reference manual describes hardware design points with the three-phase power meter demo boards. For technical details about the board design and solution implemented, see the documentation section on freescale.com. 7 References Following references are available on freescale.com: Kinetis M Series MCUs Kinetis L Series MCUs 8 Revision history Table 2. Revision history Revision number Date Substantial changes 0 03/2014 Initial release 16 Freescale Semiconductor, Inc.

How to Reach Us: Home Page: freescale.com Web Support: freescale.com/support Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including typicals, must be validated for each customer application by customer s technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions. Freescale, the Freescale logo, and Kinetis are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. ARM and Cortex are registered trademarks of ARM Limited (or its subsidiaries) in the EU and/or elsewhere. All rights reserved. 2014 Freescale Semiconductor, Inc. Document Number: DRM146 Rev. 0 03/2014