# how to use the I2C for RCM6760?

**URL:** <https://forums.digi.com/t/how-to-use-the-i2c-for-rcm6760/13342>\
**Category:** Rabbit Software\
**Tags:** i2c, rcm6760\
**Created:** [July 22, 2014, 12:54am UTC](https://forums.digi.com/t/how-to-use-the-i2c-for-rcm6760/13342 "2014-07-22T00:54:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huanghao](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@huanghao](https://forums.digi.com/u/huanghao)\
**Post date:** [July 22, 2014, 12:54am UTC](https://forums.digi.com/t/how-to-use-the-i2c-for-rcm6760/13342/1 "2014-07-22T00:54:54Z")

</div>

In the “Users Manual:Rabbit 6000 Microprocessor” section 35.3.3 (I2C peripheral:Master mode,Data write) ,the second step:Set the target slave address and R/W bit by writing to SGDR,I want to ask how to write the address byte to the SGDR register by Dynamic function,if like this WrPortI(SGDR,&SGDRShadow,0x70) ,the project compile have the error,why?

---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [July 22, 2014, 10:47am UTC](https://forums.digi.com/t/how-to-use-the-i2c-for-rcm6760/13342/2 "2014-07-22T10:47:09Z")

</div>

Rabbit 6000’s HW I2C is broken.

To use the software library instead of the hardware version, change the #if, #else, #endif statement in i2c.lib.

The software library is a bit-banging version of I2C.
