# MM5451 (LED Driver) basics - trouble lighting LEDs

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:

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

• Schematic? The "sagging" from left to right on that scope trace looks very suspicious, presumably both the left and right are supposed to be at 0V? – pjc50 Aug 1 '13 at 12:44
• I haven't calibrated the oscilloscope yet, in anycase it shouldn't make a difference. As for the schematic, I don't have diagram, but I double checked using the following instructions code.google.com/p/arduino-m5451-current-driver/wiki/… – rom Aug 1 '13 at 12:47
• Try setting the oscilloscope to DC mode instead of AC. – Anindo Ghosh Aug 1 '13 at 12:58
• ahah, well spotted sir. Its been a few years since I last used one. – rom Aug 1 '13 at 13:02
• Have you tried reversing the LEDs (i.e. common ground)?...the data sheet is not explicit in this regard but it looks to me like the outputs are active high. Figure 13 is ambiguous in that it shows both PNP and NPN multiplex driver transistors...I don't see how that would work. – aja Aug 1 '13 at 14:12