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

#use spi (FORCE_HW on dspic33F devices

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



Joined: 23 Apr 2010
Posts: 1

View user's profile Send private message

#use spi (FORCE_HW on dspic33F devices
PostPosted: Fri Apr 23, 2010 1:14 am     Reply with quote

Hi All

I have used
Code:

#use spi(FORCE_HW, BITS =8,stream=multi_spi)

in the other 8 bit devices successfully but I am not able to compile this option on dspic33F.

I have use the following code:
Code:

#pin_select SDO1   = PIN_B13
#pin_select SDI1    = PIN_B11
#pin_select SCK1IN    = PIN_B10

#use spi(FORCE_HW, BITS =8,stream=multi_spi)

How can I force CCS to use the hardware spi (not software spi) to perform the spi transfers?

Thank you
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sun Apr 25, 2010 3:26 pm     Reply with quote

I'm using:


Code:
   #use spi(MASTER, SPI2, STREAM=VIDEO, mode=0, BITS=8)


just fine EXCEPT that barely PCD pre-4.100, transfers with spi_xfer() didn't work quite right - so I had to do them by hand.


You are using PCD, right?

What version are you at?

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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