Shift Register Woes, specifically the STP16DP05


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Location
    Virginia
    Posts
    65

    Question Shift Register Woes, specifically the STP16DP05

    Hi all,

    I am trying to use a 16-bit shift register to light up some LEDs, eventually in a matrix fashion. I've used the 74HC595 before, so I thought this would be a snap. Unfortunately, I'm stuck. I'm using what I'm learning is a fairly new part, the STP16DP05 from STMicroelectronics. The datasheet gives very little to go on with a couple of timing diagrams and a few sentences about its operation. I'm using the shiftout command and I'm at a point where I'm finally seeing a voltage (with a DMM) on the outputs when I send low bits and I'm seeing low (ground) when I send high bits. This is, of course, opposite to what I should be seeing. When I hook up a cheap red LED to a high output, it doesn't light up. I assume this is due to limited current, which is controlled on the chip through an external resistor, connected to ground as best I can tell. I've changed the resistor from 475 ohms to 100 ohms with no luck - LED still won't light. Can anyone shed some light (pun not intended)?

    Here is my main code (not including all the configuration and setup code) - I'm using a PIC18F2525:

    pause 500
    MAIN:

    LOW PORTA.2
    SHIFTOUT SPI_SDO, SPI_CLK, 1, [$00FF\16] ' Update the display
    HIGH PORTA.2
    LOW PORTA.2
    end

    I've tried commenting out the last low porta.2 with no noticeable difference. The external resistor is 100 ohms and connected to ground and OE-DM2 is connected directly to ground. I'm fairly certain I'm doing something silly, but the datasheet is about as sparse about operation as you can get. I haven't been able to find anything else on the chip, here or Google, other than the datasheet and an application note (also sparse). Any help would be greatly appreciated. Thanks!

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    They're called LED sink driver (kinda open-drain output on PICs)... so you must connect between VDD and the I/O.

    Refer to Figure 6 (PDF page 9)
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2005
    Location
    Virginia
    Posts
    65


    Did you find this post helpful? Yes | No

    Thumbs up Ahhh . . .

    Steve,

    Thank you! In my defense, I've never seen a ground/sink represented as a single bar. On the other hand, I don't know if I'd have caught that anyways. Thanks again!

    -Tony

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  3. Long shift register
    By Joe Rocci in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th April 2009, 19:14
  4. Replacing shift register with PIC
    By TonyA in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 7th April 2008, 18:31
  5. Replies: 15
    Last Post: - 30th January 2005, 03:58

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