hi,

I have a subroutine to control 2 LED drivers, 1 has a 10 segment bar and the other has 2 x 7 segment numeric arrays.

So in the subroutine I have 2 statements, 1 for each driver. When I comment out either statment, the remaining driver works as expected. When both are uncommented, everything looks a mess.

These are Allegro A6276EA ICs, the Bar is an LedTech LL10000-G and the &-segment displays are KingBright SA03-12GWA.

Code snppet below, thanks in advance for any pointers.

bests,
Tobie

==========================

controlLEDdrivers:

'enable driver for 10-bit bar
LOW enable1_6276
LOOKUP2 barIndex, [0,1,3,7,15,31,63,127,255,511,1023], bits_bar
LOW latch_6276
LOW clock_6276
'shift data out
SHIFTOUT data_6276, clock_6276, MSBFIRST, [bits_bar\10]
HIGH latch_6276
HIGH enable1_6276

'enable driver for 7 segment displays
LOW enable2_6276
LOOKUP2 dig1Index, [252,96,218,242,102,182,190,224,254,246], bits_dig1
LOOKUP2 dig2Index, [252,96,218,242,102,182,190,224,254,246], bits_dig2
bits_dig.byte1 = bits_dig1
bits_dig.byte0 = bits_dig2
LOW latch_6276
LOW clock_6276
'shift data out
SHIFTOUT data_6276, clock_6276, LSBFIRST, [bits_dig\16]
HIGH latch_6276
HIGH enable2_6276

return

==========================