- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.