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

I2C Slave with 33J12MC201

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








I2C Slave with 33J12MC201
PostPosted: Tue Apr 15, 2008 10:03 pm     Reply with quote

I'm trying to set up a dsPIC33J12MC201 for I2C slave use as follows:

#use i2c(slave,Fast,sda=I2C_SDA,scl=I2C_SCL,address=0x08)

But I get the following error: Bad Option: SLAVE

The datasheet clearly indicates I2C slave support for this part. What gives? I'd really rather not have to implement all of this myself.
Matro
Guest







PostPosted: Wed Apr 16, 2008 1:54 am     Reply with quote

Notice that your slave address isn't compliant with I²C specification.
To be sure to have a correct address choose it in the range from 0x10 to 0xF0.
There is a few other possibilities but in this range all values are allowed.

Matro.
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