SPI, SCK Pin set up


Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: SPI, SCK Pin set up

    In that case you should be able to use either the bit-banged routines (SHIFTIN/SHIFTOUT depending on which direction the data is going) or the hardware MSSP module. PBP does not have any built in commads for handling the MSSP module but it's not that hard to do "manually". Have a look at the SPIMAST.pbp example on the examples pages at MELABS.

    SHIFTIN/SHIFTOUT, being bit-banged, works on "any" pins. You just set you TRIS registers normally and make sure that comparators and ADC are turned off if they happen to be on the same pin. (Actually, PBP may handle the TRIS bit but I'm not sure.)

    /Henrik.
    Last edited by HenrikOlsson; - 25th December 2011 at 09:53.

Members who have read this thread : 0

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