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 support@ccsinfo.com

There is not clock output from SPI!

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



Joined: 03 Dec 2008
Posts: 45

View user's profile Send private message

There is not clock output from SPI!
PostPosted: Thu Feb 10, 2011 12:46 pm     Reply with quote

I used dspic33fj32mc, ccs compiler 4.118
The code is like this,
Code:

#use delay(clock=8M)
#pin_select SDI1=pin_b3 
#pin_select SDO1=pin_c1
#pin_select SCK1OUT=pin_c2
#use spi(spi1,master,bits=8)

and this,
Code:

setup_spi(spi_master |SPI_L_TO_H | SPI_XMIT_L_TO_H|spi_clk_div_64 );

The problem is I don't even get clock output .
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