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

Transfer data in SPI interface

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



Joined: 19 Sep 2010
Posts: 4

View user's profile Send private message ICQ Number

Transfer data in SPI interface
PostPosted: Mon Mar 14, 2011 11:51 pm     Reply with quote

Hi, everybody. I use SPI interface to transfer data between two pic 16f877a. I transfered integer very successful but when I transfer float data or string, I did not transfer. Can you help me to transfer float or string in SPI interface. I am using CCS.
hayee



Joined: 05 Sep 2007
Posts: 252

View user's profile Send private message

PostPosted: Tue Mar 15, 2011 12:05 am     Reply with quote

You cannot directly send the floating or string through spi, you have to break the floating number into 4bytes and then send it using spi.
luckyboy



Joined: 19 Sep 2010
Posts: 4

View user's profile Send private message ICQ Number

PostPosted: Tue Mar 15, 2011 12:33 am     Reply with quote

Thanks you, Can you write code for 16f877a in SPI interface. I try test code for 18f252 but I don't success.
luckyboy



Joined: 19 Sep 2010
Posts: 4

View user's profile Send private message ICQ Number

PostPosted: Tue Mar 15, 2011 12:52 am     Reply with quote

Great, I transfer float data successful.
semmoor



Joined: 09 May 2012
Posts: 46
Location: KSA

View user's profile Send private message Send e-mail MSN Messenger

Hi
PostPosted: Mon Jul 02, 2012 5:05 pm     Reply with quote

luckyboy wrote:
Great, I transfer float data successful.


can you please share the code? if you don't mind.
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Mon Jul 02, 2012 10:30 pm     Reply with quote

Quote:
Can you write code for 16f877a in SPI interface


I believe the general answer from the guys here will be a redundant: "NO"
... imagine people cursing while you read such answer the next time you ask somthing like that.

G.
_________________
CCS PCM 5.078 & CCS PCH 5.093
bkamen



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Jul 02, 2012 10:44 pm     Reply with quote

Gabriel wrote:
Quote:
Can you write code for 16f877a in SPI interface


I believe the general answer from the guys here will be a redundant: "NO"
... imagine people cursing while you read such answer the next time you ask somthing like that.


redundant and emphatic.
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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