Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Microcontrollers (MCU)

Microcontrollers (MCU) Application and programming of MCUs, Evaluation Kits and Demonstration Boards, Programmers.

Thread Tools Search this Thread
Old 01-09-2016, 03:54 PM   #1
Junior Member
Join Date: Jan 2016
Posts: 1
alibarghi is on a distinguished road
Default ADC using DMA in STM32F105, zero value

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.
alibarghi is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus