cancel
Showing results for 
Search instead for 
Did you mean: 

serial data + clock + timer + dma 17 bit

vasilius
Associate II
Posted on August 03, 2016 at 00:06

Hello

need to implement such a protocol

0690X0000060MnUQAU.gif

0690X000006037PQAQ.jpg

i need to make solution without interrupts and with DMA

the main idea is send bufer with timer

like here

0690X00000603AcQAI.jpg

but cant conigure timer

may be exist better idea than using timer or may be somebody can help to configure timer

thx

10 REPLIES 10
vasilius
Associate II
Posted on August 06, 2016 at 16:57

Thx to all

__HAL_TIM_DISABLE(&htim8); 
__HAL_TIM_DISABLE_DMA(&htim8, TIM_DMA_UPDATE); 
HAL_DMA_Start_IT(htim8.hdma[TIM_DMA_ID_UPDATE], (uint32_t)&MASTER_BASE, (uint32_t)&GPIOA->BSRR, 74);
__HAL_TIM_ENABLE_DMA(&htim8, TIM_DMA_UPDATE);
__HAL_TIM_ENABLE(&htim8);

0690X00000603AmQAI.jpg