AFE Sigma-Delta Channel Mapping and Multi-Phase Input Support on TWR-KM35Z75M (Metering Library)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AFE Sigma-Delta Channel Mapping and Multi-Phase Input Support on TWR-KM35Z75M (Metering Library)

Jump to solution
294 Views
Anusudhan06
Contributor I

Hello NXP Team,

I am working on TWR-KM35Z75M using the latest MCUXpresso SDK and evaluating the Metering Library with the MKM35Z512 AFE (24-bit Sigma-Delta ADC). I need clarification on how the AFE channels are configured and how the metering library acquires samples.

  • SDK: Latest MCUXpresso SDK release for KM35

  • MCU: MKM35Z512VLQ7 (Kinetis-M series)

1. The metering examples (meterlib1ph_test, meterlib3ph_test) never explicitly reference these pins and need to know exactly where in the SDK the AFE channel-to-signal mapping is configured.
2. Actual AFE sampling rate (Hz / kHz), Whether sampling is triggered internally or by a timer, Whether samples are transferred via DMA, interrupt, or internal FIFO

3. I need to connect three-phase voltage and current signals to the board. What is the recommended channel assignment for 3-phase V/I pairs?

 

 

0 Kudos
Reply
1 Solution
263 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Anusudhan06 

Thanks for your post, 

There same some Application Notes related to your questions please review it:

Using the FFT on Sigma-Delta ADCs

Kinetis-M Two-Phase Power Meter - Reference Design

Filter-Based Algorithm for Metering Applications

 

View solution in original post

0 Kudos
Reply
3 Replies
264 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Anusudhan06 

Thanks for your post, 

There same some Application Notes related to your questions please review it:

Using the FFT on Sigma-Delta ADCs

Kinetis-M Two-Phase Power Meter - Reference Design

Filter-Based Algorithm for Metering Applications

 

0 Kudos
Reply
159 Views
Anusudhan06
Contributor I

Thank you @carlos_o 

I am currently integrating the Analog Front-End (AFE) configuration with the Metering Library in my project and would greatly appreciate it if you could provide a reference example.

I have already referred to the provided example file, meteringlib3Ph_test.c, which clearly shows how to use the Metering Library APIs.

However, We would greatly appreciate it, If you could provide a more complete reference example that explicitly demonstrates the integration of both the AFE configuration and the Metering Library together.

 

  • Initialization Sequence: The correct order and method for initializing both the AFE and the Metering Library.

  • Data Flow: How the raw AFE data is captured, formatted, and correctly passed as input to the Metering Library functions.

Thank you for your consideration of this request.

0 Kudos
Reply
108 Views
Anusudhan06
Contributor I
I’m circling back to see if you’ve had a chance to look into my request yet.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2260220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAFE%20Sigma-Delta%20Channel%20Mapping%20and%20Multi-Phase%20Input%20Support%20on%20TWR-KM35Z75M%20(Metering%20Library)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20%3CSTRONG%3ETWR-KM35Z75M%3C%2FSTRONG%3E%20using%20the%20%3CSTRONG%3Elatest%20MCUXpresso%20SDK%3C%2FSTRONG%3E%20and%20evaluating%20the%20%3CSTRONG%3EMetering%20Library%3C%2FSTRONG%3E%20with%20the%20MKM35Z512%20AFE%20(24-bit%20Sigma-Delta%20ADC).%20I%20need%20clarification%20on%20how%20the%20AFE%20channels%20are%20configured%20and%20how%20the%20metering%20library%20acquires%20samples.%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3ESDK%3A%20%3CSTRONG%3ELatest%20MCUXpresso%20SDK%20release%20for%20KM35%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EMCU%3A%20%3CSTRONG%3EMKM35Z512VLQ7%3C%2FSTRONG%3E%20(Kinetis-M%20series)%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E1.%20The%20metering%20examples%20(meterlib1ph_test%2C%20meterlib3ph_test)%20never%20explicitly%20reference%20these%20pins%20and%20need%20to%20know%20%3CSTRONG%3Eexactly%20where%20in%20the%20SDK%3C%2FSTRONG%3E%20the%20AFE%20channel-to-signal%20mapping%20is%20configured.%3CBR%20%2F%3E2.%26nbsp%3BActual%20%3CSTRONG%3EAFE%20sampling%20rate%3C%2FSTRONG%3E%20(Hz%20%2F%20kHz)%2C%26nbsp%3BWhether%20sampling%20is%20triggered%20internally%20or%20by%20a%20timer%2C%26nbsp%3BWhether%20samples%20are%20transferred%20via%20%3CSTRONG%3EDMA%3C%2FSTRONG%3E%2C%20interrupt%2C%20or%20internal%20FIFO%3C%2FP%3E%3CP%3E3.%26nbsp%3BI%20need%20to%20connect%20%3CSTRONG%3Ethree-phase%20voltage%20and%20current%20signals%3C%2FSTRONG%3E%20to%20the%20board.%20What%20is%20the%20recommended%20channel%20assignment%20for%20%3CSTRONG%3E3-phase%20V%2FI%20pairs%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId-2003225495%22%20id%3D%22toc-hId-2003255233%22%20id%3D%22toc-hId-2003255233%22%20id%3D%22toc-hId-2003255233%22%3E%26nbsp%3B%3C%2FH3%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20AFE%20Sigma-Delta%20Channel%20Mapping%20and%20Multi-Phase%20Input%20Support%20on%20TWR-KM35Z75M%20(Metering%20Library)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257895%22%20target%3D%22_blank%22%3E%40Anusudhan06%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20same%20some%20Application%20Notes%20related%20to%20your%20questions%20please%20review%20it%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN4847.pdf%3FWT_ASSET%3DDocumentation%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUsing%20the%20FFT%20on%20Sigma-Delta%20ADCs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FDRM149.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EKinetis-M%20Two-Phase%20Power%20Meter%20-%20Reference%20Design%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN4265.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFilter-Based%20Algorithm%20for%20Metering%20Applications%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264067%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20AFE%20Sigma-Delta%20Channel%20Mapping%20and%20Multi-Phase%20Input%20Support%20on%20TWR-KM35Z75M%20(Metering%20Library)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264067%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241501%22%20target%3D%22_blank%22%3E%40carlos_o%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20currently%20integrating%20the%20Analog%20Front-End%20(AFE)%20configuration%20with%20the%20Metering%20Library%20in%20my%20project%20and%20would%20greatly%20appreciate%20it%20if%20you%20could%20provide%20a%20reference%20example.%3C%2FP%3E%3CP%3EI%20have%20already%20referred%20to%20the%20provided%20example%20file%2C%20%3CSTRONG%3Emeteringlib3Ph_test.c%3C%2FSTRONG%3E%2C%20which%20clearly%20shows%20%3CSTRONG%3Ehow%20to%20use%20the%20Metering%20Library%20APIs%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EHowever%2C%20We%20would%20greatly%20appreciate%20it%2C%20If%20you%20could%20provide%20a%20more%20complete%20reference%20example%20that%20explicitly%20demonstrates%20the%20integration%20of%20%3CSTRONG%3Eboth%3C%2FSTRONG%3E%20the%20%3CSTRONG%3EAFE%20configuration%3C%2FSTRONG%3E%20and%20the%20%3CSTRONG%3EMetering%20Library%3C%2FSTRONG%3E%20together.%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EInitialization%20Sequence%3A%3C%2FSTRONG%3E%20The%20correct%20order%20and%20method%20for%20initializing%20both%20the%20AFE%20and%20the%20Metering%20Library.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EData%20Flow%3A%3C%2FSTRONG%3E%20How%20the%20raw%20AFE%20data%20is%20captured%2C%20formatted%2C%20and%20correctly%20passed%20as%20input%20to%20the%20Metering%20Library%20functions.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThank%20you%20for%20your%20consideration%20of%20this%20request.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2265842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20AFE%20Sigma-Delta%20Channel%20Mapping%20and%20Multi-Phase%20Input%20Support%20on%20TWR-KM35Z75M%20(Metering%20Library)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2265842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%E2%80%99m%20circling%20back%20to%20see%20if%20you%E2%80%99ve%20had%20a%20chance%20to%20look%20into%20my%20request%20yet.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E