Home/Support/Support Forum/Changing default pins
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Changing default pins

+1 vote
Hi, i'm having some problems with I2C on RCM6700. Would it be possible to use PB6 and PB4 for I2C pins with software lib?
As far as i saw, it uses PB4 and PB6 ofr something, but actually sets the I2C on port D.

Thank you.
related to an answer for: how to use the I2C for RCM6760?
asked Feb 7, 2018 in Rabbit Software by Demolick New to the Community (28 points)

Please log in or register to answer this question.

1 Answer

+1 vote
 
Best answer
The hardware-based I2C interface of the Rabbit 6000 was designed to use PE0/PE1 or PE4/PE5.

You might be able to "#use I2C_SW.LIB" to use the software-based I2C interface on pins from port D, but I don't know whether it's been tested on the 6000.

What are the problems you're seeing with I2C on the RCM6700? Have you tried using Dynamic C 10.72C? I made various changes/improvements to the I2C libraries for that release.
answered Feb 12, 2018 by TomCollins Veteran of the Digi Community (1,872 points)
selected Feb 21, 2018 by Demolick
I finally got it going, no asistance needed for now =)
Thank you,
BR
Konstantin
Thanks for your response.

As far as I know, PE4 isn't available for external connection, and using PE0/PE1 isn't helping me. I think it might be some configuration issue, looking on the SDA/SCL signal, those never go to GND.

Have you tried using I2C on RCM6000 family? If you could supply me with some sample code for I2C_HW lib with EEPROM, it would be great.

Konstantin
I recently found that the Dynamic C 10.72C installer was missing an update to the I2C libraries.  You can see the changes and download updated libraries from:
 https://github.com/digidotcom/DCRabbit_10/commit/fa4c55017e6253cccb0c6c6f72258b16d6794599
...