2011-12-03 02:21 AM
Hello,
I need help. I want to use both the regualar channel and injected channel in my project. The injected channels are configured in injected simulataneous Dual mode, single conversion, scan mode. The ADC1 is started with the pwm(ADC will also stared simultaneous with ADC2). It works well with injected channel. Now I have to use another two adc channels to be configured as regular channel in ADC1 and I dont know how to configre it. My concret questions are following. 1. Does the configuration of the mode ( single mode/scan mode/continous mode/dual mode) apply to both regular channel and injected channel. Or we can configure the regular channel and injected channel seperately. 2. I want to start the regular channel in the main() function every 1ms. It is possible to set the number of channel to be one although I have 2 channels. For example, I have channel 4 and 5 as regular channel. First I start the first conversion of channel 4 and read the result, then I modify the channel to be converted to be channel 5( i think modify the sqrx register) and start another conversion for channel 5. Will this work? 3. Is there a better way to configure the two regular channels? Thank you for help! best regard Chunyu Zhang2011-12-03 07:09 AM
Page down to an Oct. 10 post by Parag on this forum for helpful information.
Cheers, Hal2013-03-21 07:28 AM