I'm glad to know this will work! I am curious though, is it possible to use pulse (or pulse w/ variable) on other ports? How would this be done? For example:"PULSOUT <variable>, <length>" will work as expected, the pin number held in the variable will pulse.
As to "with a mask"; there is no such thing as a mask for PULSOUT, so that %00001101 is simply treated as a pin number; %1101, $D, 13. There's no such pin 13 so such commands will either be ignored or treated as 'number // 8', or 'number & 7', in this case pin 5.
pulsout portc 1,1
You nailed it. That's exactly what I was hoping to achieve. Sad to hear it's not an option. Guess I can just HIGH/LOW to get roughly the desired effect. Thanks!Only guessing, but I think what is desired by using a 'mask' is to have multiple simultaneous pulsouts on 'specified' pins.
eg pulseout %00001101,1 to pulsout on pins 0,1,2 & 3 all at the same time.
To the best of my knowledge, such a task is not possible.
I think I'm about due for an upgrade to 20x2. If only I can find where my wife's put my paycheck...PULSOUT cannot be applied to PORTC pins, although on the X2's it can be applied to any pin which can be an output, eg on the 20X2, "PULSOUT C.0, 100", will work.
b0 = 3 ' LCD 1 on "standard" pin
gosub init
b0 = 1 ' LCD 2
gosub init
b0 = 0 ' LCD 3
gosub init
init:
PULSOUT b0,1
symbol E1 = 3
symbol E2 = 1
symbol E3 = 0
b0 = E2 ' Set to LCD 2 E pin
PULSOUT b0,1