Hello guys, I am newbie here. I would like to make a programme that take from 2 channels ADC and via DMA store them in an array and then shows flags HT and TC.Do u have any example? How can I set an input of 600 khz?
I was told that I have to use F103RB so I don't have the option to change. The instructions I got (that they are not really clear) say that i should put a signal of 600khz in C2 ADC2 but I think that it is the same for AC1. Should I change order and put half transfer first? I did that and now it shows that : main.c(155): warning: #111-D: statement is unreachable I am now reading about timers and I will try to understand as much as I can. Thanks you so much for your info!
main.c(155): warning: #111-D: statement is unreachable
Yes, well there's a while(1) in there that doesn't look to have a semi-colon, or compound statement associated with it. The formatting is so godawful it's hard to tell.
So why aren't you discussing this with the person who told you that?
"The instructions I got (that they are not really clear)..."
So why aren't you seeking clarification from the person who gave you those instructions ?
Only they know what they really meant by them!
In context they might be a bit clearer, I think we are getting a reinterpretation of them. Can you get them to post the requirements here?
I'd read 600 KHz as 600 Hz my bad.
Now I'm getting the sense it's going to need >1.2MSps, the max on the F103 is 1MSps
I will try to ask more specific instructions because I don't have any written details. Just a drawing and oral instructions is all what I got so far.. I've read the TIM manual. But I would like to ask for manual on how to debug and run examples on simulator. Are there any starters guide? (I 've read the one in Keil's uvision help)
Ok I clarify that i want to achieve 600khz sampling rate. Any tips how to do that? Do I need a timer?