Troubles with SPI


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    41

    Unhappy Troubles with SPI

    I'm working with a 18f242 and a RF module type XTR-CYP-2.4 AUREL. This is a great module and is programmable by the SPI interface. I tried whit hserin and hserout and also with MSSP but never to do. Anyone had experience whit this module? Enclosed documentation I use. Thanks

    links:

    http://www.aurelwireless.com/wireles...=Radio%20modem

    http://www.cypress.com/portal/server...rpn=CYWUSB6935

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mombasa View Post
    I'm working with a 18f242 and a RF module type XTR-CYP-2.4 AUREL. This is a great module and is programmable by the SPI interface. I tried whit hserin and hserout and also with MSSP but never to do. Anyone had experience whit this module? Enclosed documentation I use. Thanks
    If you're trying to use HSerIn and HSerOut with an SPI interface, that won't work at all... HSerIn/HSerOut = asynchronous serial, SPI=(usually) Synchronous Serial Interface; different modes of comm's, different physical interface requirements.
    Post your schematic, post your code, post more info...

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    if it use SPI, you want to use SHIFTOUT. Maybe SHIFTIN... but i doubt it will work as Slave... Hence why you should have a look at some Melabs code example.

    SpiMast.bas http://melabs.com/resources/samples/pbp/spimast.bas

    SpiSlave http://melabs.com/resources/samples/pbp/spislave.bas
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Troubles with SPI

    Thanks for help, but I used Shiftout and Shiftin without problems now. It was only a commands sequence problem. With the appropriate Cypress directive (that I enclose) I solved all. Thanks again.

    Mombasa
    Lazio
    Italy

Similar Threads

  1. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  2. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  3. SPI Interfacing
    By toofastdave in forum Serial
    Replies: 8
    Last Post: - 18th November 2007, 11:15
  4. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 19:17
  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 : 0

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