FTM channel match trigger PDB and PDB IDLY Interrupt to triggered ADC sample using software

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

FTM channel match trigger PDB and PDB IDLY Interrupt to triggered ADC sample using software

499 Views
wehao
Contributor I

1.Applications:motor control using lower bridge arm three shunt sampling;
2.Request: FTM Trigger PDB-->PDB set IDLY interrupt-->in IDLY interrupt service routine,adjust PDB IDLY to trigger next current Sampling point via voltage vector sector and module index;
3. Problem: 
a.Is there any demo for three shunt sampling? The adjustment of sampling point is not mentioned in AN12235;
b.when FTM center aligned,It seems that the matching event when the count rises and the matching event when the count falls cannot be distinguished,moreover,only when the count rises and matches, the interrupt can be triggered. When the count falls, it seems that the interrupt cannot be triggered.

0 Kudos
Reply
1 Reply

480 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

a) obviously just 2 phases currents are measured and third is calculated as chapter 3.3 of AN12235 mentions. Chapter 4.1.3. discusses timing and modules synchronization to accomplish all measurements and calculation, so you can refer to it.

b) channel flag is generated for both match events in up-down count mode. Channel CHOV bit can be used to distinguish match event.

BR, Petr

0 Kudos
Reply