Im using an 40X2 part (checking in simulator) and trying to execute the following code to bitshift a variable and place its output onto port C pins 4 and 5, bitwise OR in order to keep existing port config:
However this wipes the current outputs on the port as if I've just done pinsC = b55.
I tried
b54 = pinsC
pinsC = b54 | b55
but that doesnt cure it.
In fact no manipulation of port C is visible in the pinsC register, even when done with pinsC=%.... rather than high C.x
I've tried using outpinsC instead of pins (as it holds the right value) but that doesnt work either as "b54=outpinsC" returns a zero when outpinsC isnt zero?!
Is this a known issue?
Code:
b55 = valueOne << 4
pinsC = pinsC | b55
I tried
b54 = pinsC
pinsC = b54 | b55
but that doesnt cure it.
In fact no manipulation of port C is visible in the pinsC register, even when done with pinsC=%.... rather than high C.x
I've tried using outpinsC instead of pins (as it holds the right value) but that doesnt work either as "b54=outpinsC" returns a zero when outpinsC isnt zero?!
Is this a known issue?
Last edited: