Page 1 of 1

16f887 mclr re3

Posted: Fri Aug 31, 2012 6:59 am
by asbase
I set the above re3to digital input in config setting but found that i still can get the pin for extra connection in any output connection. Any update?

Re: 16f887 mclr re3

Posted: Fri Aug 31, 2012 9:27 am
by Benj
Hello,

Here is an updated FCD with the RE3 pin added.

Re: 16f887 mclr re3

Posted: Fri Aug 31, 2012 9:38 am
by Enamul
Actually the pin which is multiplexed with MCLR can only be input and this is configurable as you said. You rightly said that this pin should not be in the output list. But still flowcode is not doing this obvious thing. I'll have a look at Fcd if anything could be done I'll let you know.

Re: 16f887 mclr re3

Posted: Fri Aug 31, 2012 10:05 am
by Enamul
Hi Ben,
I was posting from my mobile..it seems that we are trying to post at similar time...But I have tried your FCD..

Code: Select all

PortMask4=0x0F
With this PORTE<3> still available as output.

Code: Select all

PortMask4=0x07
If I change to the above, PORTE<3> will be no more in output but the problem is it will be no more as input also..
In that case, we have to use c code for input..can't use FC component..

Re: 16f887 mclr re3

Posted: Fri Aug 31, 2012 10:08 am
by Benj
Hi Enamul,

Yes i'm afraid either the pin is unavailable or is available for both input and output in Flowcode, there is currently no way to define a pin as input only. Maybe a good addition for the future?

Re: 16f887 mclr re3

Posted: Fri Aug 31, 2012 10:10 am
by Enamul
Yes, that's I replied in my first post..But if we remove that in FCD and use c code for input that could solve problem temporarily. Isn't that?