Shiftin/Shiftout


Closed Thread
Results 1 to 2 of 2
  1. #1
    paul.mcallister's Avatar
    paul.mcallister Guest

    Default Shiftin/Shiftout

    Hi all,

    I wish to use an LTC1298 12 bit ACD converter. This device uses a serial interface. It is possible to tie the Dout and Din pins together and communicate via a single port for both input and output.

    So, here is my question. I want to use a PortB i/o line. I currently have PortB set up as all outputs with the pull up resisitors enabled. If I want to read the LTC1298 with a Shiftin, do I first have to reconfigure the one PortB line as an input prior to issuing this command, or will issueing the command be enough ? The Pic manual doesn't say and a search of the archives didn't turn up any clues. I am using PIC 18F876

    Thanks, Paul

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


    Did you find this post helpful? Yes | No

    Default

    Usually PBP will set the pin itself. BUT if you feel safer to use INPUT PORTB.X before your Shiftin statement... give a go.

    Be carefull if you tie Do and DI... should isolate the DO pin with a diode with a pull down resistor.
    Steve

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

Similar Threads

  1. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52
  2. Help! - Very strange results with ShiftIn/ShiftOut
    By khufumen in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd February 2005, 22:21

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