Mar 14, 2023
07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 14, 2023
07:05 AM
Hello Experts,
I have configured EVADC and DMA. If result register is updated then DMA will be called for buffer update.
Some times i am getting Valid flag as 0 in result register.
Can any one explain, why i am getting VF as 0 ?
here i am taking entire 32 bit result value to the buffer.
1 Reply
Mar 15, 2023
09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 15, 2023
09:15 AM
Hello,
A possible reason for the VF bit to be zero is ADC result updating is done internally by ADC itself. When ADC is updating its result register, and at the same time CPU and/or DMA wants to read it, then the old ADC result will be obtained (VF=0) . If CPU and/or DMA reads ADC shortly later (when the ADC result update is already finished), the new result will be obtained (VF=1) .
Regards,
Aiswarya.
This widget could not be displayed.