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
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

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

Software SPI
PostPosted: Sat Jun 26, 2004 9:57 am     Reply with quote

I am surprised I can’t find a software SPI implantation in the collection of inbuilt functions. I am using a 16F871 and Microchip decided to delete the hardware SPI. Instead of plugging in the more expensive 16F877 device I was wondering if there is any software implantation issues? I will only be writing (to one of Microchips digital pot IC’s), it looks like I can bit bash it out, is it really that simple? If so can I add it to a “wish list” for the next compiler revision :=)

Will
languer



Joined: 09 Jan 2004
Posts: 144
Location: USA

View user's profile Send private message

That should be ok
PostPosted: Sat Jun 26, 2004 12:00 pm     Reply with quote

Check this thread,

http://www.ccsinfo.com/forum/viewtopic.php?t=80&highlight=software+spi

The only issue (if you need it, and you probably don't) would be speed.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jun 26, 2004 12:09 pm     Reply with quote

Quote:
I will only be writing (to one of Microchips digital pot IC’s).

See the following example file and drivers, for examples of how
to use software SPI with digital pots:

EX_DPOT.C

and the following drivers:
AD8400.C
DS1868.C
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

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

PostPosted: Sun Jun 27, 2004 1:10 pm     Reply with quote

Top job, thanks. Saves me having to write that :-) Thanks again. I am trying to keep the costs down on this project as there are going to be a decent volume of them, hence the penny pinching. The PIC is going to be the most expensive part!

Keep well,

Will
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