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 CCS Technical Support

How to use two ssp simutanously

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

How to use two ssp simutanously
PostPosted: Fri Aug 19, 2005 11:08 am     Reply with quote

I am thinking to use a timer chip and a MMC, they both using the SCL, SDA, Is it possible, how they recognize each other without mistake?
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:00 pm     Reply with quote

If I define I2C to other pins like PIN_A0=SDA, PIN_B1=SCL than I can use this two pins as timer and the hardware SDA,SCL, SDO for SPI for MMC is this right?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:13 pm     Reply with quote

Who are the manufacturers and what are the part numbers of the
two chips ?
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:28 pm     Reply with quote

Which I mean is to use a software I2C and hardware SPI
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:32 pm     Reply with quote

I am trying to use 16f877A and PCF8583 (timer) and MMC (not sure yet as least 32MB) I would be intended to use the MMC card and programing that you post before, please advise!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:32 pm     Reply with quote

Quote:
Which I mean is to use a software I2C and hardware SPI

Assuming you're using a 16F877, then use pins C3, C4, and C5 for the
hardware SPI, and use any other two pins for the software i2c,
such as B0 and B1.
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 12:55 pm     Reply with quote

thank you:

which MMC did you used, and what is the adaptor (connect to it), can I use any large memory without modifying the program.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 1:13 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=23183&start=15
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