From the SHIFTOUT section in the manual:SHIFTOUT DataPin, ClockPin, Mode, [Var{\Bits}...]
...
...
\Bits optionally specifies the number of bits to be shifted out. If it is not specified, 8
bits are shifted out, independent of the variable type.
From the SHIFTOUT section in the manual:SHIFTOUT DataPin, ClockPin, Mode, [Var{\Bits}...]
...
...
\Bits optionally specifies the number of bits to be shifted out. If it is not specified, 8
bits are shifted out, independent of the variable type.
I guess you have to make a word variable and send out the bits you need (if more than a byte).
Ioannis
variable is already WORD.
I tried to add \16 to shiftout, but still nothing...
What value of REXT do you have?
Just to be sure... it's a sink driver so you do have the LEDs connect the right way around - anode to +V, cathode to 5026 output pin), right?
Rext is 2.2K
LEDs are connected in a proper way - I tried to ground the LED pin going into the chip via 220 ohm resistor - it came on.
So I guess, maybe I need to change state of the OE pin too? Currently I have it grounded.
That all looks right according to the datasheet... OE is low-active so grounding it should be ok.
So, back to basics then.
Make sure you don't have anlog functions enabled on the pins you're trying to use. Verify that you can control the state of each indivivual pin that you're using.
After that (or before if you'd rather) it's time to hook up the scope or logic analyzer to verify that what you get is what you want.
Bookmarks