Page 1 of 1
How to apply Masking
Posted: Tue Jul 15, 2014 2:15 pm
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
Re: How to apply Masking
Posted: Tue Jul 15, 2014 2:48 pm
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.
Re: How to apply Masking
Posted: Tue Jul 15, 2014 8:38 pm
by JDR04
Sorry guys, here is the flowchart............ thanks again...John
Re: How to apply Masking
Posted: Tue Jul 15, 2014 8:48 pm
by medelec35
Hi John,
Does this help?
Also
this may help?
Re: How to apply Masking
Posted: Tue Jul 15, 2014 9:01 pm
by JDR04
Thanks a lot, that helps a lot.
I'll practise it tonight just to make sure.
Thanks very much again...................John