SPI command


Closed Thread
Results 1 to 3 of 3

Thread: SPI command

  1. #1
    Join Date
    Jan 2005
    Location
    France
    Posts
    97

    Default SPI command

    I post this question in Serial forum
    because I think that SPI is more or less a "serial" communication

    I got a PIC program written in "C"
    eg :
    //========================
    // Envoi data un bit
    //========================
    void SPI_tx_bit(char data)
    {
    SPI_data=0;
    SPI_clk=0;
    if(data >0) SPI_data=1;
    SPI_clk=1;
    }
    Question : Is there a possibility under PBP to do the same thing ?

    general question :
    I am not familar with the forum, on the main menu "FORUM"
    I don't know on which particular forum I have to go ..
    I try in the SEARCH case the word SPI or SPI command
    and I have 0 match .. is it normal, or did I make any error ?

    thanks in advance for your help
    Francois F1CHF

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    http://melabs.com/resources/samples/pbp/spimast.htm

    Or the SHIFTIN/SHIFTOUT commands.

    The forums search tool requires more than three characters. So this works much better.
    http://www.picbasic.co.uk/forum/showthread.php?t=4751
    Use the one with google on the left.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2005
    Location
    France
    Posts
    97

    Default

    [QUOTE=
    as usual
    many thanks
    Francois

Members who have read this thread : 2

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts