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


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,122

    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: 1085
Size:  137.1 KB

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


    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
    4,115


    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,122


    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
    453


    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,122


    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.

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 : 0

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