Pinguino Forum
PIC32 MX440F Digital Port and Analog Input interference, problem and solution. - Printable Version

+- Pinguino Forum (http://forum.pinguino.cc)
+-- Forum: Using Pinguino (http://forum.pinguino.cc/forumdisplay.php?fid=29)
+--- Forum: Sensors (http://forum.pinguino.cc/forumdisplay.php?fid=33)
+--- Thread: PIC32 MX440F Digital Port and Analog Input interference, problem and solution. (/showthread.php?tid=4940)



PIC32 MX440F Digital Port and Analog Input interference, problem and solution. - Cemal54 - 13-05-2017

I use a Pinguino MICRO from Olimex to read analog signals and control some devices.

I saw that an
AnalogRead using AN11 (pin 24 of MX440F == pin 9 of CON2),
disables
the output port RB8 ( pin 21 of MX440F == pin 12 of CON2).

A software solution is an immediate port re-configuration after the AnalogRead().


.
.
x = AnalogRead(P2_9);
pinMode(P2_12, OUTPUT);
.
.


Best