I've spent an evening trying to make it work to no avail.
I'm not used to reading datasheets (attached), and maybe this one isn't very good, but I am assuming that the led output feeds the anode of the LED - is this correct ?
I am also assuming I can tie DM2 low if I'm not interested in the error detection mode ? I only have 3 io lines available to drive this so I hope this is the case.
I think I should used ShiftEx here, does anyone have any sample code that works with this device perhaps?
In the absence of knowing exactly how to setup shiftex I wrote some bitbang code and scoped the outputs to get what I thought was the same as in the timing diagram but I can't get the test led to turn on even though I am sending data to turn every output on.
Any comments/help appreciated.
Code below. Wait times are a guess but should operate device within spec.
Code: Select all
for byLoop=0 to 15
call putpin(SDI,zxoutputhigh)
sleep (0.01)
Call Putpin(CLK,zxoutputhigh)
sleep (0.01)
Call Putpin(CLK,zxoutputlow)
next
sleep (0.01)
'Latch data
Call Putpin(SDI,zxoutputlow)
Call Putpin(DM1,zxoutputhigh)
Call Putpin(CLK,zxoutputhigh)
Sleep (0.01)
Call putpin(DM1,zxoutputlow)
Call putpin(CLK,zxoutputlow)