How to use the SPI port?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Cocoa, Fl
    Posts
    5

    Default How to use the SPI port?

    Hello everyone,
    I would like to communicate from a PIC to a SPI device through the SPI port on the 16f876 (RC3,4,5).
    Using this mode allows you to recieve and transmit data at the same time.

    How do you set this mode in PBPro and how do you get the information from the buffers?

    Thanks,
    Andy

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    atucker, Unfortunately PBP does not have any commands for handling SPI communications. You will have to write your own which shouldn't be too difficult.

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Feb 2006
    Location
    Cocoa, Fl
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Thanks for replying Dave,
    I was just trying to fing an easy to get the data from the buffers. From what I gatherd from the data sheet the SDI and SDO are both transporting data during the clock(SCK) pulse.
    I guess there is always assembly, It has been awhile.
    Andy

Similar Threads

  1. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  2. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  3. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31

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