|
|
|
|
|
|
|
Another question about SPI (1 viewing) (1) Guests
Favoured: 0
|
|
|
TOPIC: Another question about SPI
|
|
|
|
Re:Flex and SPI 3 Months, 1 Week ago
|
Karma: 0  
|
|
Now it seems work well. If after every byte sended I read a byte throught this istruction:
while(!SPI1STATbits.SPIRBF); SPI1STATbits.SPIROV = 0; read_byte = SPI1BUF;
the pin SS go high when I want (!!!
Is good this method?
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Another question about SPI 2 Months, 3 Weeks ago
|
Karma: 0  
|
|
Hi guys, I have another question for all. Is there some command to set spi communication in LSB first or I must reverse my data before send it? I see that data-out is send MSB first and data-in received LSB first, but I need to send data LSB first.
Thankyou very much.
/Daniele
EDIT: The problem is resolved, I reverse my byte before send it.
|
|
|
|
|
|
|
Last Edit: 2008/10/18 10:15 By daniele.caprini.
|
|
|
The administrator has disabled public write access. |
|
|
|
|
|
|
|
|
 |
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
|
Privacy Policy
|
 |
|
|