Associate III
March 26, 2019
Question
arbitrary waveform using DMA and timer
- March 26, 2019
- 7 replies
- 2840 views
Hello,
i am trying to generate arbitrary waveform. But it still dose not work. I think it's up to the configuration. I have created a array of 6 words for two waveform patterns to be send to TIM1 channel 1 (TIM1_ARR, TIM1_RCR, TIM1_CCR1) This is how the basics look
uint32_t aSRC_Buffer[6] = { 2000,1,800,3000,2,200}; /// ARR, RCR, CCR1 x 2. But i am just getting a 3.3 V on the PIN.
uint32_t aSRC_Buffer[6] = { 2000,1,800,3000,2,200};
HAL_TIM_DMABurst_WriteStart(&htim1,TIM_DMABASE_ARR, TIM_DMA_TRIGGER,
(uint32_t *)aSRC_Buffer, TIM_DMABURSTLENGTH_3TRANSFERS);#DMA #DMA #TIMER
