|
|
View previous topic :: View next topic |
Author |
Message |
EricLinderson
Joined: 19 Mar 2007 Posts: 8
|
Receiving data with SPI |
Posted: Mon Mar 19, 2007 7:31 am |
|
|
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
|
|
Posted: Mon Mar 19, 2007 8:08 am |
|
|
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 |
|
|
|
|
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
|