N2+ analog channel as input
#1
Posted 06 December 2012 - 02:58 PM
#2
Posted 06 December 2012 - 05:43 PM
How do I configure Analog0 as an inputport (N2+) for using it as an interrupt port as I did on N+.
Or can I configure Analog0 as an Inputport ?
Is that possible.
You can create an InputPort for all of the analog channels in exactly the same way it was done on 4.1;
InputPort inputPort = new InputPort(Pins.GPIO_PIN_A1, false, Port.ResistorMode.Disabled);
However the Analog pins are not interrupt enabled, this was also true on the N+.
When you talk EE use small words, I'm just a Software Developer
My Blog/Site and Everything Else
If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.
Oh my. So many things, so little money!!
#3
Posted 06 December 2012 - 06:27 PM
#4
Posted 06 December 2012 - 06:32 PM
on my mini interrupts work with analog pins!
so should it be for netduino and netduino+
//edit: i meant they work as digital InterruptPort
The mini is the exception to the rule, I know that on the Netduino and as far as I'm aware the N+/+2 Interrupts are not supported on Analog pins.
When you talk EE use small words, I'm just a Software Developer
My Blog/Site and Everything Else
If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.
Oh my. So many things, so little money!!
#5
Posted 06 December 2012 - 07:31 PM
#6
Posted 19 February 2013 - 08:38 PM
Do the analog pins support pullups?
I'm getting an argument exception on the code below when 'pin' specifies an analog pin.
port = new InputPort(pin, true, Port.ResistorMode.PullUp);
[font="arial, helvetica, sans-serif;"]or maybe they don't support glitch filtering?[/font]
[font="arial, helvetica, sans-serif;"]Thanks,[/font]
[font="arial, helvetica, sans-serif;"]David[/font]
#7
Posted 19 February 2013 - 09:59 PM
The exception was due to the glitch filter.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users