Weird SPI interface: VIH to VIHH for CS?


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    I also have 10k resistors between the MCP4261 pins and the 16F628A pins, but that shouldn't affect anything.
    .
    .
    .
    .
    It still wasn't working... until I changed out the 10k resistors with 500 ohms.
    Are you saying that your 10K resistor where in serie between the PIC and the MCP chip?

    If so, you just don't need any, connect them directly. The only concern you may have, is the open-collector ones. In this case 10K or lower are nice between 5V and your pin.
    Steve

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

  2. #2
    Join Date
    Jan 2009
    Location
    Huntsville, AL
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Are you saying that your 10K resistor where in serie between the PIC and the MCP chip?

    If so, you just don't need any, connect them directly. The only concern you may have, is the open-collector ones. In this case 10K or lower are nice between 5V and your pin.
    Yeah, I usually put them on to prevent burning out a pin on accident. What pins are considered "open-collector"? Do CS, CLK, and SI typically have internal resistors that limit current flow? What about SO?

    Thanks!
    Dave

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


    Did you find this post helpful? Yes | No

    Default

    What you need to worry is your PIC I/O, some could be Open-Collector type, so if you use a open collector I/O as output, you need to add a pull-up resistor on it, unless your pin will never go to the high level unless your device have internal pull-up.

    If you want to protect your PIC i/O from short, then use something like ~100-200 Ohm would work. In theory each I/O is capable to drive/sink 25mA... 5V/25mA=200 Ohms. Higher the current limiting + Faster your signal is, higher the chance to screw up your signal shape/edges/amplitude, higher the chance to have issue.


    As you don't use Shiftin, you don't need to worry about SO
    Last edited by mister_e; - 30th January 2009 at 17:27.
    Steve

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

Similar Threads

  1. Master SPI interface to LCD/OLED??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th September 2009, 23:44
  2. need help for APR6008 SPI interface
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th June 2009, 03:19
  3. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  4. Help with MicroMag3 SPI interface to PIC
    By kaan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st May 2006, 23:20
  5. Serial Peripheral Interface (SPI)
    By O2_Guy in forum Serial
    Replies: 1
    Last Post: - 22nd March 2006, 20:01

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