+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 1
    Points: 294, Level: 3

    Join Date
    May 2011
    Posts
    1
    Helped
    0 / 0
    Points
    294
    Level
    3

    SPI master slave using gpio

    hi

    I'm using PIC24FJ256GB110 on a explorer 16 board and trying write a code for SPI using GPIO ...

    I need to configure Master and slave of the controller and transfer data from master to slave...

    im using MPLAB c30 complier
    Can any1 help me out with this.. ??

    •   AltAdvertisment

        
       

  2. #2
    Junior Member level 3
    Points: 751, Level: 6
    assasinsareus's Avatar
    Join Date
    Jul 2010
    Posts
    25
    Helped
    3 / 3
    Points
    751
    Level
    6

    Re: SPI master slave using gpio

    Hello,

    Flowcode will allow you to do this in a graphical way. If you download Flowcode for dsPIC then you can also look at the component C code to generate your SPI code.
    Regards,
    Ben



    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: SPI master slave using gpio

    I assume you don't wish to use the built in SPI interface of the PIC?
    To use GPIO pins there is some example C code for bit banging SPI see
    Serial Peripheral Interface Bus - Wikipedia, the free encyclopedia



--[[ ]]--