Home/Support/Support Forum/how to use the I2C for RCM6760?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to use the I2C for RCM6760?

0 votes
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?
asked Jul 22, 2014 in Rabbit Software by huanghao New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
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.
answered Jul 22, 2014 by trooper2 Veteran of the Digi Community (591 points)