Posted on January 14, 2015 at 20:51
Hi, I have the MCU run SysClk at 168MHz, and I setup the timer to capture mode, but the returned value is two times bigger than expected. I checked the waveform of the toggled LED, it is correct, just the Time...
Posted on October 24, 2014 at 21:58
I am using T2 to trigger ADC1,ADC2 and ADC3, all the ADCs are working in indepent mode. each ADC EOC will trigger a DMA2 in a dedicate channel.
T2->ADC1->DMA2_Stream0.Channel_0
T2->ADC2->DMA2_Stream2.C...
Posted on October 22, 2014 at 21:36 The original post was too long to process during our migration. Please click on the attachment to read the original post.
Posted on January 15, 2015 at 18:02 Hi, Clive1 Thanks for your reply. I got another question. I have two kind of boards, one board (A) has TIM3_CH3 and TIM3_CH4 connected to MCU, and TIM1_CH3 and TIM1_CH4 floating. I only initialized TIM3 in my pro...
Posted on January 12, 2015 at 21:07 Hi Clive1 Sorry, I made a mistake when I clean up the code for this post. it is adc1.chn_nr; The question is still the same, why one the first 4 conversions are OK? I even tried to convert 16 times, but it is only...
Posted on January 12, 2015 at 17:46
Clive1
I used your first posted program with a little modification to convert the same channel for 8 times, but I find only the first 4 conversions are ''correct'' and the second 4 conversions are ''wrong'...
Posted on October 24, 2014 at 22:26
I found the problem.
They are in the ISRs, the flag DMA_IT_HTIFx and DMA_IT_TCIFx, I forgot to change them accordingly for DMA2_Stream1_IRQHandler() and DMA2_Stream2_IRQHandler().
void DMA2_Stre...
Posted on October 23, 2014 at 16:49 Thanks Clive1. I misunderstood the HT/TC to be the FIFO inside DMA. Now it make sense that they are for my buffer. I still have two questions: 1. I am using ADC_TripleMode_RegSimult mode + ADC_DMAAccessMode_1, so ...