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

Coding for SPI/I2C master & slave PIC16F877A

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



Joined: 25 Aug 2009
Posts: 3

View user's profile Send private message

Coding for SPI/I2C master & slave PIC16F877A
PostPosted: Mon Nov 30, 2009 7:59 am     Reply with quote

Hi, i'm new to C language and i am doing on a project which connect one master to two or more PIC16F877A using SPI or I2C. I wish to make the master device transmit PWM to slave device in order to control the motor speed at slave.

I read from many posts that commented SPI is simpler than I2C, is that true?

Can i have coding for the SPI? Thanks.
dyeatman



Joined: 06 Sep 2003
Posts: 1914
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Nov 30, 2009 8:31 am     Reply with quote

To me SPI and I2C are about the same. As far as giving you the code, I don't think anyone here wants to do your project for you. Try doing some searching on this forum and you will find a lot of code to get you started.
_________________
Google and Forum Search are some of your best tools!!!!
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