Hi All,
I'm trying to invert the logic of 1 pin so it's always the opposite logic of another pinb. (Basically like an inverter of an existing output).
I'm using a 28x2 and tried using 'not' and 'inv' commands with no success.
Do those commands NOT work on a variable name? or don't operate on 1 single bit?
For example if i use:
symbol dog = b.7
symbol cat = b.6
Later in the code structure i have 'dog pulsing away a various times, so i thought i'd add an inverted output called 'cat' in this example.
"let cat = not dog" doesn't seem to compile...
then i changed my code to be:
"let cat = not b.7" but still no good...
Are the NOT and INV commands strictly for an entire byte-wide variable only?
So, after all the above, i resorted to:
high dog
low cat
and later in the code
low dog
high cat
I was hoping to create an easier inversion of 1 bit, instead of tracking where in the code all the high/lows need to occur.
thanx in advance...
I'm trying to invert the logic of 1 pin so it's always the opposite logic of another pinb. (Basically like an inverter of an existing output).
I'm using a 28x2 and tried using 'not' and 'inv' commands with no success.
Do those commands NOT work on a variable name? or don't operate on 1 single bit?
For example if i use:
symbol dog = b.7
symbol cat = b.6
Later in the code structure i have 'dog pulsing away a various times, so i thought i'd add an inverted output called 'cat' in this example.
"let cat = not dog" doesn't seem to compile...
then i changed my code to be:
"let cat = not b.7" but still no good...
Are the NOT and INV commands strictly for an entire byte-wide variable only?
So, after all the above, i resorted to:
high dog
low cat
and later in the code
low dog
high cat
I was hoping to create an easier inversion of 1 bit, instead of tracking where in the code all the high/lows need to occur.
thanx in advance...