Is there any reason why I wouldn't want to start the ADC from within it's IRQ?

jmbldwn gravatar image

asked 2013-09-19 23:07:08 +0100

updated 2013-09-20 12:53:43 +0100

I have 3 inputs I need to sample every n minutes. I have an n-minute timer that can kick off the first one, but I need to run the second and third samplings in succession after that.

Is there any reason why I can't have my IRQ handler set up the 2nd and 3rd conversions, and call the final handler after the 3rd?

Specifically, I'm asking if there's any kind of race condition or order of operations I should worry about.

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
ovrebekk gravatar image

answered 2013-09-20 08:57:03 +0100

updated 2013-09-20 12:53:43 +0100

Hi Jim

As long as you wait until the end of the interrupt before you restart the ADC (after clearing the END event and reconfiguring the ADC) I can't foresee any problems.

Regards Torbjørn

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools


Asked: 2013-09-19 23:07:08 +0100

Seen: 497 times

Last updated: sep. 20 '13