southafrikanse
Junior Member level 1
- Joined
- Jun 12, 2007
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Amora, Portugal
- Activity points
- 1,418
16f687 pic
Greetings.
I'm interfacing a Max3100 with a XBee module, a Bluetooth Module and a PIC (16F687). From the XBee to the Max3100 I send the correct data. But, from the Max to the PIC there's a problem.
I'm writing data (2 Bytes, 1 Byte at a time) to the PIC from the Max3100 via SPI. However, in the first trasmission I receive the data correctly and in the second transmission I get a "1" before receiving the last 7 bits.
I've tried adding a delay between each function and I am still unable to figure out where the problem actually is.
Any help is welcomed.
Added after 3 hours 3 minutes:
Well, I've finally figured it out and it's now working.
The problem was in the UART configuration and not the SPI itself.
Thanks any way
Greetings.
I'm interfacing a Max3100 with a XBee module, a Bluetooth Module and a PIC (16F687). From the XBee to the Max3100 I send the correct data. But, from the Max to the PIC there's a problem.
I'm writing data (2 Bytes, 1 Byte at a time) to the PIC from the Max3100 via SPI. However, in the first trasmission I receive the data correctly and in the second transmission I get a "1" before receiving the last 7 bits.
I've tried adding a delay between each function and I am still unable to figure out where the problem actually is.
Any help is welcomed.
Added after 3 hours 3 minutes:
Well, I've finally figured it out and it's now working.
The problem was in the UART configuration and not the SPI itself.
Thanks any way