I am using a PIC16F886 chip.
I have a question concerning using 2 different ports. Here is a simple example to illustrate (in a rough pseudo code) of what I would like to do.
If RA1 is on
and
RB1 is on
Turn RC1 on.
I would like to have it to where 2 conditions from different ports are true for output on RC1.
For example, if button on RA1 is pushed, and button on RB1 is pushed, it lights RC1.
I would like to do it all in a define statement using possibly a macro if possible though. Any help is greatly appreciated.
Thanks.
I have a question concerning using 2 different ports. Here is a simple example to illustrate (in a rough pseudo code) of what I would like to do.
If RA1 is on
and
RB1 is on
Turn RC1 on.
I would like to have it to where 2 conditions from different ports are true for output on RC1.
For example, if button on RA1 is pushed, and button on RB1 is pushed, it lights RC1.
I would like to do it all in a define statement using possibly a macro if possible though. Any help is greatly appreciated.
Thanks.