2018-02-14 04:20 AM
We are selecting STM32F405 for our DSP application for BLDC motor control. In that regard, we have some queries.
We understand that the MMS bits in the TIMx_CR2 register enables the TRGO (trigger output) configuration for synchronization with slave devices.
We would like to set this in 011 – compare pulse mode for generating a trigger wrt PWM level. Is this option feasible for triggering the ADC sampling at the center of the PWM pulse? We need some help on the settings for the same?
We understand that the CMS bits in TIMx_CR1 register enables the center-aligned mode and triggers the output compare interrupts.
Does the arrow mark representation in the below timing diagram, represent the interrupt events? This seems to be edge triggered wrt PWM outputs. Can we configure this to be level triggered (center aligned)?
If yes, how do we do this? Can we use this interrupt for triggering the ADC sampling?