Best Answer JeroenG, 16 April 2013 - 06:38 AM
thanks for help.
I fixed it by creating a class where i constantly polling the ADC input and when it changes it firing an interrupt.
Go to the full post  | |||||||||||||||||||||||||||
Best Answer JeroenG, 16 April 2013 - 06:38 AM
thanks for help. I fixed it by creating a class where i constantly polling the ADC input and when it changes it firing an interrupt. Go to the full post
3 replies to this topic
#1Posted 27 March 2013 - 05:02 PM Hi
I use netduino plus. How to program Analog input as interrupt? Thanks
#2Posted 27 March 2013 - 06:44 PM Hi,
The Netduino does not have an analogue interrupt capability.
To generate an interrupt when an analogue voltage reaches a certain level, you would need to use a voltage comparator chip (or an op-amp) to compare the analogue voltage with a trigger voltage and then connect the comparator output to a normal interrupt input.
You would probably set the trigger voltage using resistors or a potentiometer. If you wanted to be really clever, you could set the trigger voltage using a DAC whose voltage is programmed from the Netduino.
Hope this helps - Paul
#3Posted 27 March 2013 - 10:38 PM its also possible from software. arron made this iirc. its like polling the adc constantly in an thread, and when it changes firing an interrupt.
you can also set the threshhold value when it shall fire. #4Posted 16 April 2013 - 06:38 AM Best Answer thanks for help. I fixed it by creating a class where i constantly polling the ADC input and when it changes it firing an interrupt. Also tagged with one or more of these keywords: netduino plus
1 user(s) are reading this topic0 members, 1 guests, 0 anonymous users | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | |||||||||||||||||||||||||||