CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Receiving data with SPI

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
EricLinderson



Joined: 19 Mar 2007
Posts: 8

View user's profile Send private message

Receiving data with SPI
PostPosted: Mon Mar 19, 2007 7:31 am     Reply with quote

I'm trying to receive nmea sentences from a GPS module, and I'm trying to use SPI on my PIC18F4525. I can see the data coming from the GPS with an oscilloscope, and that pin is connected to pin 23 (SDI) on my PIC.
I've tried to use the setup_spi and then turning on the int_ssp interrupt but the interrupt never occurs... Can anyone help me with this?
I'm currently using the UART with a Bluetooth module, and that works ok.
Ttelmah
Guest







PostPosted: Mon Mar 19, 2007 8:08 am     Reply with quote

What GPS module are you using that supports SPI?.
You are talking about data coming from the module, but SPI, requires both data and a clock. I would suggest that what is coming from the module is probably standard asynchronous serial data, and in which case it needs to connect to the serial in of the chip, and be received with the asynch serial handler, rather than SPI.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group