Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Flex and SPI (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Flex and SPI
#200
daniele.caprini (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Mantova - Pavia Birthdate: 1984-09-14
Re:Flex and SPI 3 Months 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?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#236
daniele.caprini (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Mantova - Pavia Birthdate: 1984-09-14
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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/10/18 10:15 By daniele.caprini.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy