ADC using DMA in stm32F105, zero value.

Status
Not open for further replies.

alibarghi

Member level 2
Joined
Jun 30, 2013
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,559
i use DMA in STM32F105 to reading adc 8Khz.
my DMA buffer is 1000 .
algorithm is hear :

1- start timer 4 cc4 -----> 8Khz Adjusted
2- enable ADC
3- start ADC_ch
4- config DMA in circular mode
4- start DMA transmit to buffer[1000]
5- disable half transmit interrupt
6- in interrupt of DMA , reading the value buffer[450] and buffer[550] . buffer[450] is Absolutely true but buffer[550] is always 0
I debug it by keil in all of buffer[500]~buffer[999] are zero forever.

please help me to solve it.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…