2020-01-09 01:02 AM
Hi? I set my ADC1&2 in simultanous mode. I write these 2 data halfword to 1 - 32 bit variable word.
How can I divide this 32 bit variable into 2 separate variables? To get values of ADC1 and ADC2 separate?
ADC is 12 bit.
Thank You :)
Solved! Go to Solution.
2020-01-09 10:07 PM
> No, it does not. In any architecture, given a 32-bit value, ...
32 bit is not given.
16 bit MCUs still exist, I deal with them on almost daily basis. Thank god my company has never used 8-bitters ...
2020-01-09 10:26 PM
How to do this?
Im using dma to transfer adc1&adc2 in one transfer to a buffer. I have only 1 dma but 2 adc.
Thanks :)
2020-01-09 10:52 PM
Declare the buffer as
uint16_t adcbuffer[N][2];
then the values from one ADC would go to adcbuffer[x][0], from the other ADC to adcbuffer[x][1]
2020-01-09 10:59 PM
I will try this, thanks ! If it will work for me it will speed up the processing of data :)