|
|
View previous topic :: View next topic |
Author |
Message |
DesignNewBy
Joined: 23 Apr 2010 Posts: 1
|
#use spi (FORCE_HW on dspic33F devices |
Posted: Fri Apr 23, 2010 1:14 am |
|
|
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
|
|
Posted: Sun Apr 25, 2010 3:26 pm |
|
|
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 |
|
|
|
|
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
|