2023-12-17 08:12 AM - edited 2023-12-17 08:13 AM
I am trying to read some data by ADC using DMA transfer method I configured the ADC
attached the code below
I cannot getting the ADC value in all buffer only read the 3rd buffer
1st and second buffer shows grabage value
please help me
i tried out changing the sample value and clock prescaler
My cpu speed is 14Mhz and also to the ADC is 14Mhz
Solved! Go to Solution.
2023-12-17 08:54 AM
Because you defined it as uint32_t and not uint16_t.
2023-12-17 08:27 AM - edited 2023-12-17 08:30 AM
Your ADC buffer should be uint16_t values, not uint32_t values.
The first two buffer values are two concatenated uint16_t's
268374015 = 0x0FFF0FFF
2023-12-17 08:42 AM
Thanks very much
Why the 3,4 and 5 buffers are not filled ?
2023-12-17 08:54 AM
Because you defined it as uint32_t and not uint16_t.
2023-12-17 07:47 PM
Tanks worked