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

SPI3 on PIC24FJ64GB106

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



Joined: 10 Oct 2011
Posts: 24

View user's profile Send private message

SPI3 on PIC24FJ64GB106
PostPosted: Mon Nov 21, 2011 10:04 am     Reply with quote

I am trying to use SPI3 on a PIC24FJ64GB106-I/PT with the CCS MMC/SD driver. I'm having trouble assigning PIN_F0 to SDI3. The compiler generates an invalid pin error but F0 is a CN pin (CN68). I've had trouble with PCD with using the pullups and found this to be a compiler bug. I'm just wondering if anyone else has had this issue before. I don't think I'm doing anything wrong with the following:

Code:

#include<24fj64gb106.h>
#fuses FRC, NOWDT, NODEBUG
#zero_ram
#pin_select OC1=PIN_B5
#pin_select INT1=PIN_C14
#pin_select SDO3=PIN_D11
#pin_select SDI3=PIN_F0
#pin_select SCK3OUT=PIN_D8
#use delay(type=internal, clock=8MHz)
#use i2c(MASTER, SDA=PIN_D9, SCL=PIN_D10, force_hw, slow, STREAM=IO_BUS)
#use i2c(MASTER, SDA=PIN_F4, SCL=PIN_F5, force_hw, slow, stream=RTCC_BUS)
#use spi(MASTER, DI=PIN_D10, DO=PIN_D11, CLK=PIN_D8, BITS=8, MSB_FIRST, MODE=0, stream=mmcsd_spi, force_hw)


Thanks.
snock



Joined: 10 Oct 2011
Posts: 24

View user's profile Send private message

PostPosted: Mon Nov 21, 2011 11:34 am     Reply with quote

Disregard. I didn't design the PCB or electronics and evidently someone didn't read the data sheet and placed SDI on an unremappable pin.
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