Hardware requirements

  • Micro USB cable

  • TWR-KM35Z75M board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo

  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Download the program to the target board.

  3. Continue with help of the AN4255.pdf, AN4265.pdf, AN4847.pdf for more details about the metering library usage.

Filter-Based Metering Algorithms Configuration Tool:

Filter-Based Metering Algorithms Configuration Tool enables to calculates the metering parameters and generates metering configuration. The tool can be downloaded from: https://cache.nxp.com/secured/assets/documents/en/application-note-software/AN4265SW.zip?gda=1624456565_67a51c25a902c782827fad361d35eb20&fileExt=.zip

Example list:

meterlib1ph_test.c This example demonstrates use of the metering library in typical one-phase power meter application.

meterlib1phkwh_test.c This example demonstrates use of the metering library in active energy one-phase power meter application.

meterlib1phrc_test.c This example demonstrates use of the metering library in typical one-phase power meter application with Rogowski coil sensor.

meterlib2ph_test.c This example demonstrates use of the metering library in typical two-phase power meter application.

meterlib2phkwh_test.c This example demonstrates use of the metering library in active energy two-phase power meter application.

meterlib2phrc_test.c This example demonstrates use of the metering library in typical two-phase power meter application with Rogowski coil sensor.

meterlib3ph_test.c This example demonstrates use of the metering library in typical polyphase power meter application.

meterlib3phkwh_test.c This example demonstrates use of the metering library in active energy polyphase power meter application.

meterlib3phrc_test.c This example demonstrates use of the metering library in typical polyphase power meter application with Rogowski coil sensor.

meterlibFFT1ph_test.c This example demonstrates use of the FFT metering library in the typical single-phase power meter application with proportional current sensor and with the S/W phase shift correction. AFE conversion mode (single/continuous) may be selected by the ‘AFE_MODE’ constant. Number of the FFT samples is set to 32, number of output harmonics is 16 then.

meterlibFFT2ph_test.c This example demonstrates use of the FFT metering library in the typical two-phase power meter application with derivative current sensor without the S/W phase shift correction. AFE conversion mode (single/continuous) may be selected by the ‘AFE_MODE’ constant. Number of the FFT samples is set to 64, number of output harmonics is 32 then.

meterlibFFT3ph_test.c This example demonstrates use of the FFT metering library in the typical three-phase power meter application with proportional current sensor and with the S/W phase shift correction. AFE conversion mode (single/continuous) may be selected by the ‘AFE_MODE’ constant. Number of the FFT samples is set to 64, number of output harmonics is 32 then. This example allows to measure the sense of rotation of the 3-ph mains.

meterliblp1ph_test.c This example demonstrates use of the low power metering library in typical one-phase power meter application.

meterliblp1phkwh_test.c This example demonstrates use of the low power metering library in active energy one-phase power meter application.

meterliblp2ph_test.c This example demonstrates use of the low power metering library in typical two-phase power meter application.

meterliblp2phkwh_test.c This example demonstrates use of the low power metering library in active energy two-phase power meter application.

meterliblp3ph_test.c This example demonstrates use of the low power metering library in typical polyphase power meter application.

meterliblp3phkwh_test.c This example demonstrates use of the low power metering library in active energy polyphase power meter application.