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

Interface Accelerometer and SD card by spi with PIC18F2620

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



Joined: 22 Aug 2011
Posts: 6
Location: Thailand

View user's profile Send private message

Interface Accelerometer and SD card by spi with PIC18F2620
PostPosted: Wed Mar 14, 2012 11:05 pm     Reply with quote

I want to stored data from accelerometer into sd card with pic18f2620 but port spi in pic18f2620 not enough.Interface of accelerometer in circuit should be? If i want interface accelerometer and sd card with spi. Can you help me?

Code:
//    sd/mmc          pic18f2620
//      SDI             C5
//      SDO             C4
//      CLK             C3
//      CS              C2

//    mma7455L        pic18f2620
//      SDI             ??
//      SDO             ??
//      CLK             ??
//      CS              C0


mma7455L and pic18f2620 can operate in 3.3v
RoGuE_StreaK



Joined: 02 Feb 2010
Posts: 73

View user's profile Send private message

PostPosted: Wed Mar 14, 2012 11:38 pm     Reply with quote

As I understand it, SDI, SDO, and CLK are shared, you only need a separate pin for each CS (chip select).

http://www.ccsinfo.com/forum/viewtopic.php?p=7154

http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Mar 15, 2012 4:50 am     Reply with quote

Please tell us where you saw you can run the PIC18F2620 at 3.3V !
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