16f887 mclr re3

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
asbase
Posts: 20
Joined: Sun Jun 03, 2012 12:53 pm
Location: Malaysia
Has thanked: 13 times
Contact:

16f887 mclr re3

Post 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?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 16f887 mclr re3

Post by Benj »

Hello,

Here is an updated FCD with the RE3 pin added.
Attachments
16F887.fcd
(12.47 KiB) Downloaded 333 times

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: 16f887 mclr re3

Post 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.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: 16f887 mclr re3

Post 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..
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 16f887 mclr re3

Post 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?

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: 16f887 mclr re3

Post 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?
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply