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

software SPI?

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



Joined: 11 Sep 2008
Posts: 44

View user's profile Send private message

software SPI?
PostPosted: Wed Nov 26, 2008 8:00 am     Reply with quote

Is there a way to set up a software SPI connection or would I have to do it by hand?
Ttelmah
Guest







PostPosted: Wed Nov 26, 2008 8:46 am     Reply with quote

Depends on your compiler version.
With a 'V3' compiler, you need to go DIY. However there is code for several SPI devices driven using software, in the drivers directory, and you can probably 'borrow' what is needed from this.
With a V4 compiler, the #USE SPI setup, exists, and this supports both software and hardware SPI, using a stream name, and the spi_xfer call to do the I/O.

Best Wishes
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