How to apply Masking

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
JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

How to apply Masking

Post by JDR04 »

I'm hoping somebody will help with the application of masking.

From my flowchart, I'm trying to switch on LED's connection to AN0 and AN1 at the same time but cannot get it to work.

Could somebody show me where I went wrong please. Thanks a lot....................John

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: How to apply Masking

Post by Benj »

Hello,

Could you post up your program so far so we can see what your currently doing?

Best bet would be to use an output icon to output the value 0x03 and enable masking for bits 0 and 1. This will allow RA0 and RA1 to be set at the same time without effecting the state of the other pins on PortA.

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: How to apply Masking

Post by JDR04 »

Sorry guys, here is the flowchart............ thanks again...John
Attachments
Masking Flowchart.fcf
(8 KiB) Downloaded 270 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: How to apply Masking

Post by medelec35 »

Hi John,
Does this help?
Masking1.png
(29.18 KiB) Downloaded 2507 times
Also this may help?
Martin

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: How to apply Masking

Post by JDR04 »

Thanks a lot, that helps a lot.

I'll practise it tonight just to make sure.

Thanks very much again...................John

Post Reply