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

CCS USB Development Kit SPI Communication

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



Joined: 23 May 2012
Posts: 2

View user's profile Send private message

CCS USB Development Kit SPI Communication
PostPosted: Wed May 23, 2012 11:15 am     Reply with quote

Is there a way to use SPI communication with the CCS USB Development Kit 53314-451? The SDO pin does not have a port, it is only connected directly to the RS232 chip.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed May 23, 2012 11:48 am     Reply with quote

Hi,

Most of us probably don't have that kit, so we don't know which PIC you are talking about, and we don't have access to the schematic for the board.

It sounds like you are saying that the hardware SPI SDO pin is connected directly to an RS232 level translator IC. If the IC is socketed, you could remove it to free up that line, or you could use a software SPI implementation on another pin.

John
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 23, 2012 12:30 pm     Reply with quote

Quote:
Is there a way to use SPI communication with the CCS USB Development Kit

Tell us what you want to use SPI for.
SCSU_Student



Joined: 23 May 2012
Posts: 2

View user's profile Send private message

PostPosted: Wed May 23, 2012 2:17 pm     Reply with quote

I am using SPI to control a DDS chip. I have been using the PIC 18F4455 on a breadboard but it takes up to much space.

The RS232 IC is not socketed. What I was thinking about doing is removing the RS232 IC because I do not need RS232 communication, then soldering a lead across from the SDO trace to where it goes into the RS232 connector on the board. I would then just plug in a cable to the RS232 connector. Here is a link to the board layout: http://www.ccsinfo.com/pdfs/product_PDFs/USB_board.pdf

Would that work or would there be a better way to do it.

The pin used as SDO for the 18F4550 is C7.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu May 24, 2012 1:34 pm     Reply with quote

Do you need to use hardware SPI ? Do you need the speed ?
If not, you can use software SPI. For that, you can either write
your own "bit bang" code, or you can use the #use spi() library
provided with the CCS compiler.

Post the manufacturer and part number of the DDS chip.
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