View previous topic :: View next topic |
Author |
Message |
young
Joined: 24 Jun 2004 Posts: 285
|
How to use two ssp simutanously |
Posted: Fri Aug 19, 2005 11:08 am |
|
|
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
|
|
Posted: Fri Aug 19, 2005 12:00 pm |
|
|
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
|
|
Posted: Fri Aug 19, 2005 12:13 pm |
|
|
Who are the manufacturers and what are the part numbers of the
two chips ? |
|
|
young
Joined: 24 Jun 2004 Posts: 285
|
|
Posted: Fri Aug 19, 2005 12:28 pm |
|
|
Which I mean is to use a software I2C and hardware SPI |
|
|
young
Joined: 24 Jun 2004 Posts: 285
|
|
Posted: Fri Aug 19, 2005 12:32 pm |
|
|
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
|
|
Posted: Fri Aug 19, 2005 12:32 pm |
|
|
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
|
|
Posted: Fri Aug 19, 2005 12:55 pm |
|
|
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
|
|
|
|