Timeline for Arduino fast ADC sampling--which burst control is best?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 7, 2022 at 14:01 | vote | accept | Dave X | ||
Jan 7, 2022 at 6:06 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 8, 2021 at 5:04 | history | edited | Dave X | CC BY-SA 4.0 |
edited title
|
Dec 8, 2021 at 3:52 | comment | added | Dave X | @Gerben -- Yes, letting the ADC run on automatic and toggling the sample recording seemed cleanest. | |
Dec 8, 2021 at 3:23 | answer | added | Dave X | timeline score: 1 | |
Nov 26, 2021 at 13:56 | comment | added | Dave X | Thanks. I hadn't considered ADATE. I think I might need to do more than one bit, one to stop the next interrupt, and others to clean up the status on the first capture of the next cycle. And protect the samples better in the ISR. | |
Nov 26, 2021 at 13:46 | history | edited | Dave X | CC BY-SA 4.0 |
Add ADATE option per Gerben's comment
|
Nov 26, 2021 at 13:18 | comment | added | Gerben |
Using ADIE could give you faulty readings, as you could get an interrupt for a AD-conversion that started before you enabled the interrupts. Using ADEN will make the first conversion take longer, which you might not want. I'd set/clear the ADATE bit. Alternatively, is timing isn't that critical, you could keep the ADC running, and set sample back to zero, when you want to start recording a new set of measurements.
|
|
Nov 26, 2021 at 5:54 | history | asked | Dave X | CC BY-SA 4.0 |