Main Site Documentation

Strange problem on EMX module GPIO


#1

I’m using an emx do develop my application in the first part of the code I have a problem, I can setup all pin as GPIO except for the IO75.
What’s the reason??

Tks


        public static void Main()
        {
            Stato = 0;
            HoldOn = new OutputPort(EMX.Pin.IO15, true);
            HoldOn.Write(true);

            oPompa = new OutputPort(EMX.Pin.IO9, false);
            oValvola = new OutputPort(EMX.Pin.IO16, false);

            oLedPompa = new OutputPort(EMX.Pin.IO30, false);
            oLedAria = new OutputPort(EMX.Pin.IO23, false);

            iPompa = new InputPort(EMX.Pin.IO75, true, Port.ResistorMode.PullUp);

            iBattLow = new InputPort(EMX.Pin.IO22, true, Port.ResistorMode.PullUp);

            iNoAC = new InputPort(EMX.Pin.IO20, true, Port.ResistorMode.PullUp);



#2

what happens?


#3

Exception System.ArgumentException - 0xfd000000 (1)

#### Message: 
#### Microsoft.SPOT.Hardware.Port::.ctor [IP: 0000] ####
#### Microsoft.SPOT.Hardware.InputPort::.ctor [IP: 0008] ####
#### MB16AW.Program::Main [IP: 0041] ####

Eccezione first-chance di tipo ‘System.ArgumentException’ in Microsoft.SPOT.Hardware.dll
Eccezione non gestita di tipo ‘System.ArgumentException’ in Microsoft.SPOT.Hardware.dll


#4

Only interrupts pins can use glitch filter. Try it with false.