PDA

View Full Version : Troubles with SPI



mombasa
- 7th March 2007, 10:32
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/wireless/uk/product_info.asp?id=183&modulation=2.4%20GHz%20FM%20FSK&comp=A&tip_UK=Radio%20modem

http://www.cypress.com/portal/server.pt?space=CommunityPage&control=SetCommunity&CommunityID=209&PageID=259&fid=65&rpn=CYWUSB6935

skimask
- 11th May 2007, 15:12
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...

mister_e
- 11th May 2007, 15:18
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

mombasa
- 12th May 2007, 07:33
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