cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RE choosing class for adc data acquisition

ahmadreza_hadidi2020
Associate II
Posted on September 27, 2013 at 16:37

Hello every body

I wanna to make a device that has following features:

  • Acquiring 3648  analog data from a TCD1304 linear sensor at least in 200K sample per second speed
  • data should be taken 3 to 100 times in a second (100 * 3648 * 12bit Data)
  • time between data acquisitions could be set by the computer
  • All the data should be sent to PC by USB port
  • Some settings are sent to the device from PC by LABVIEW using USB

for this, i found that the stm32f103RE is a good choice for me to do this (isn't?)

now i want to ask what USB class should i use to do this work?

is the USB speed in this mcu good for my work?

i should send 3648 * 2(byte) * 100(times) data in a second.

can i use HID class for this purpose?

and many other questions after founding the answer of these ones!

#custom-usb-hid #adc-stm32f103
3 REPLIES 3
ahmadreza_hadidi2020
Associate II
Posted on September 29, 2013 at 20:13

What is wrong with my questions?

the title?

Some one please help me.
Posted on September 30, 2013 at 01:37

There are a lot of specifics you'll have to own and research there. As a general list of tasks these do appear to fit within the capabilities of the chip. You'll want to pick a class for which you have drivers, and you will likely want to review devices which offer similar functionality, and see how they work.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ahmadreza_hadidi2020
Associate II
Posted on October 05, 2013 at 10:09

Tank you ''clive'' for your answer

i choose this mcu for my work, now i have USB related questions. How can i do this work as best? i think a Custom class could be help me for this work and in the PC i can use WinUSB to achieve my data.

I found that i can set my settings to MCU by Control Endpoint0 and use another bulk endpoint to receive my ADC data from stm32f103. is it right to use control endpoint0 for my settings? (For example changing a GPIO mode or ADC speed) or another interrupt transfer is better for this?