Electronic – MM5451 (LED Driver) basics – trouble lighting LEDs

ledmbed

I'm using an mbed micro controller to switch on all channels on the mm5451 LED driver. I have wired accordingly with 5v PSU, 1k resistor on pin 19 for brightness control (have varied this with no results), data/clock, LEDs with negative to the mm5451 (and positive to +5v inc resistors).

I've got a very basic loop that sends out a string of pulses (35 + start bit) which should switch on all channels, but I'm not getting any light.

#include "mbed.h"

DigitalOut dat(p22);
DigitalOut clk(p21);

int main() {
    while(1) {
        wait_ms(500);
        for(int i = 1;i < 37; i++){
            dat = 1;
            wait_us(20);
            clk = 1;
            wait_us(90);
            clk = 0;
            wait_us(20);
            dat = 0;
            wait_us(10);
        }
    }
}

Datasheets:

mm5451: DATASHEET mm5451

mbed: NXP LPC1768

Here's an image of the output pulses:

Updated image of pulses, thanks to ANINDO GHOSH

Hopefully the chip isn't broken and I'm just making a really stupid error.
Looking forward to the obvious answer!

Best Answer

Problem solved- I'd taken a pile of LEDs from a bin of dead components by mistake.

I put the supply voltage up to 12v and used some brand new LED strips and it all works perfectly.

Varied the bits to ensure the pulse is being picked up correctly and sure enough, the lights change according to the pulse.

Sorry to answer my first question, thank you for your help.