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.
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