I suspect that you may have overlooked pin 23. It is described as "Input terminal of an external resistor for constant current programing" and it sets the value of the constant current for the output drivers. I believe that if you select this resistor correctly you can connect your LEDs directly from the outputs of the driver chip to the LED supply voltage. In my testing, I connected sixteen 330 ohm resistors from the outputs to +5V and connected a 1K ohm resistor from pin 23 to ground. According to the datasheet (Figure 11) the 1K resistance should set the output current to approximately 20mA.FFMan wrote:I still can't get this to function at all.
With that setup, the following code produced the expected outputs:
Code: Select all
Const lePin as Byte = 13
Const dataPin as Byte = 12
Const clkPin as Byte = 11
Sub Main()
Call PutPin(dataPin, 0)
Call PutPin(clkPin, 0)
Call PutPin(lePin, 0)
Call ShiftOutEx(dataPin, clkPin, 16, &Hf0f0, &H01)
Call PutPin(lePin, zxOutputPulse)
End Sub
Also, you can just tie the LE input high but the output will "ripple" into place whereas a pulse on LE after the data is output will cause the outputs to change to the desired state at once.