Using PBPro for SPI Interface


Results 1 to 6 of 6

Threaded View

  1. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by twincitian View Post
    Hi.

    I have looked at a number of examples on this site for interfacing to ADCs using Shiftin and Shiftout. Unfortunately they all either write data to OR read data from a device. I could find no example of simultaneously writing and reading a device as is required for the LTC2442(see attachment).

    Am I correct in assuming that the Shiftin and Shiftout commands won't work for this device? That I will need to talk to the device using a brute force approach?

    Thanks.
    I just looked at the complete datasheet for the LTC2442, and I think you might be reading the diagram wrong.

    They do show both SDI and SDO on the same diagram, and both doing input and output at the same time, I'm almost positive that the only reason they did this was to make one diagram, instead of making 2.
    In that diagram, if you're doing input to the '2442, ignore the SDO line, and vice-versa for doing output.
    Therefore, shiftin and shiftout may work for this device...provided they can go fast enough for you, which they should do just fine. The book says roughly 50khz at 4mhz oscillator speed, and I can clock mine at about 500khz at a 40mhz clock speed on an 18F4620, so the math does work out.
    Last edited by skimask; - 22nd March 2007 at 01:37.

Similar Threads

  1. LCDOUT w/custom interface?
    By Mike, K8LH in forum PBP Extensions
    Replies: 4
    Last Post: - 3rd March 2015, 04:54
  2. Replies: 33
    Last Post: - 19th March 2010, 04:02
  3. ICD use with MCS Plus, PBPro & PicKit2??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st October 2009, 00:06
  4. 'SCI' interface
    By ecua64 in forum Off Topic
    Replies: 0
    Last Post: - 29th September 2005, 17:02
  5. User Configuration Interface in PBP
    By Radiance in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th February 2004, 09:00

Members who have read this thread : 1

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