been along time but trying to recall using swordfish basic cycling all the ports on
tried
for x = 0 to 7
portc.(x) = 1
but it won't compile
Have used similar but can't locate.
I tried
TRUSC = 1
BUT DOSENT SEEM TO WORK
an easy method to test all the ports
Without complete code, hard to say. First, is x declared as a byte/integer/word, or is it a real value. Real variables won't work as index counters.
Second, have you declared portc as an OUTPUT. Not sure if that compiler auto-sets it, or you have to declare it.
Try the code without the "()", that is portc.x = 1
Another syntax could be portc.Bits(x)=1
If those don't work, try the HIGH(portc.x) or HIGH (portc.Bits(x))