Pls I've run into trouble setting up centre aligned complementary pwm using stm32f103c8t6. Centre aligned Period is 2x but dma doesn't work anymore. But if I go to Edge aligned Period is half and dma works . I an using dma1_chn2 for dma ... pls could u piont me in the right direction.....I don't want HAL
@SanelKeys2 ай бұрын
DMA has mapping between input and output data values: 16-bit to 16-bit, 32-bit to 16 bit, e.t.c. Read about DMA.
@Bubukiki-do5qt2 жыл бұрын
Hello! How do you know what timers act on what pins? Also what are channels ?
@ENGRTUTOR2 жыл бұрын
The board manual or the chip datasheet will tell you the info regarding what pins have access to what timer channels/functions. Each timer has multiple functionality - eg. input capture, output compare, PWM etc. Channels are independent set of registers that allow the timer to be used for a specific functionality.
@Bubukiki-do5qt2 жыл бұрын
@@ENGRTUTOR On my board stm32f401xB/C pin PA15 and PA5 are both connected to TIM2/CH1 but only one receives PWM output.
@Bubukiki-do5qt2 жыл бұрын
@@ENGRTUTOR How would I go about using a the second channel of a timer as PWM? For example TIM2/CH2?