Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    Hello.
    I got some MBI5026, with LEDs connected to it's output. I want to turn them on via PBP.
    According to datasheet, the following timing diagram should be used. I tried to use it with the code below,but it does not works. I have OE connected to GND, so this should not be an issue?

    Code:
    SDI VAR PORTC.4
    CLK VAR PORTC.5
    LE VAR PORTC.6
    CONT VAR WORD
    FOR CONT=0 TO 65535
    LCDOUT $FE,$C0,"VAL=", DEC CONT
    SHIFTOUT SDI,CLK, 0, [CONT]
    HIGH LE
    PAUSE 1
    LOW LE
    PAUSE 10
    NEXT
    Name:  MBI5026.jpg
Views: 874
Size:  137.1 KB

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    From the SHIFTOUT section in the manual:
    SHIFTOUT DataPin, ClockPin, Mode, [Var{\Bits}...]
    ...
    ...
    \Bits optionally specifies the number of bits to be shifted out. If it is not specified, 8
    bits are shifted out, independent of the variable type
    .

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    I guess you have to make a word variable and send out the bits you need (if more than a byte).

    Ioannis

  4. #4
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    variable is already WORD.
    I tried to add \16 to shiftout, but still nothing...

  5. #5
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    What value of REXT do you have?
    Just to be sure... it's a sink driver so you do have the LEDs connect the right way around - anode to +V, cathode to 5026 output pin), right?

  6. #6
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    Rext is 2.2K
    LEDs are connected in a proper way - I tried to ground the LED pin going into the chip via 220 ohm resistor - it came on.
    So I guess, maybe I need to change state of the OE pin too? Currently I have it grounded.

  7. #7
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    That all looks right according to the datasheet... OE is low-active so grounding it should be ok.

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    So, back to basics then.
    Make sure you don't have anlog functions enabled on the pins you're trying to use. Verify that you can control the state of each indivivual pin that you're using.
    After that (or before if you'd rather) it's time to hook up the scope or logic analyzer to verify that what you get is what you want.

  9. #9
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    yes, checked all that
    tried to pull CLK, SDI, LE pins high/low - all work fine. Checked all wirings and contacts - everything is fine.
    A little note - voltage on all output pins is about +3V regarding to GND, and does not change whatever command I send.

  10. #10
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Can such interface be handled with SHIFTOUT? (Macroblock MBI5026 LED driver)

    Tried to play with OE pin - no change, it does not care whenever pull it high or low...

Similar Threads

  1. i2c interface with LED driver PCA9532
    By koodiifin in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 13th July 2012, 19:04
  2. RGB led driver ic lpd6803
    By m_flfl in forum General
    Replies: 0
    Last Post: - 29th May 2012, 19:49
  3. Using MAX 7221 LED driver
    By Nick in forum mel PIC BASIC
    Replies: 15
    Last Post: - 21st October 2010, 19:31
  4. Help with LED driver fade on/off
    By dfort in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th July 2009, 00:39
  5. MM5451 35way LED driver example
    By J_norrie in forum Code Examples
    Replies: 3
    Last Post: - 12th May 2008, 09:16

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts