Question
Timer triggered DMA doesn't work
I want to sample GPIO state twice per millisecond with DMA.
I used TIM16 as basic counter - setting TIM16 CR1 register to 1, ARR to 32000 (half milisecond) and TIM16 DIER register to enable DMA on update (bit 8).
Timer is checked to work fine. DMA doesn't work. No matter how i set up DMA (circular or not) for peripheral to memory transfer with GPIO_IDR as source - it doesn't work.
Actually - i found that it gets automatically turned off - CCR registers enable bit gets cleared.
What's wrong?
