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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: SPI on the PIC24FJ256
AlisonP

Replies: 6
Views: 11105

PostForum: General CCS C Discussion   Posted: Fri Oct 14, 2011 4:35 am   Subject: SPI on the PIC24FJ256
In the CCS PIC24 syntax, SPI_XMIT_L_TO_H has to be added to change active edge

Thank you for this advice, it has fixed my problem. I was looking in the help for the correct parameter labels *silly ...
  Topic: SPI on the PIC24FJ256
AlisonP

Replies: 6
Views: 11105

PostForum: General CCS C Discussion   Posted: Fri Oct 14, 2011 2:30 am   Subject: SPI on the PIC24FJ256
I have added my pin setups like this:

#pin_select SDO1=PIN_G7
#pin_select SDI1=PIN_G6
#pin_select SCK1OUT=PIN_G8

... and it is working, I can see SPI data and clock on the correct pins. So tha ...
  Topic: SPI on the PIC24FJ256
AlisonP

Replies: 6
Views: 11105

PostForum: General CCS C Discussion   Posted: Fri Oct 14, 2011 1:36 am   Subject: SPI on the PIC24FJ256
To change SPI formats on the fly use spi_setup(), spi_read() and spi_write() instead of #use spi.

Thanks for the reply, but how do I select the correct pins for the SPI using the spi_setup() comman ...
  Topic: SPI on the PIC24FJ256
AlisonP

Replies: 6
Views: 11105

PostForum: General CCS C Discussion   Posted: Thu Oct 13, 2011 8:56 am   Subject: SPI on the PIC24FJ256
I am trying to use the SPI bus on the PIC24FJ256. I need to use it to communicate with an ADC and a DAC on the same lines.

To setup the SPI up for the ADC I am using the following:

#define SPI_ ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group