This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2C on CAPS

Hi all,

I start a design on STR912FAW44 and I'm using CAPS software (ST) to assign pins. But I've a problem to declare I2C0 as master. I2C0 on P2.0 and P2.1.
I check registers values generated in conf.h file :

#define GPIOIN2 0x1
#define GPIOOUT2 0x8
#define GPIO_DIR2 0x0

I don't understand why P2.0 is set as I2C0_CLKIN and P2.1 as I2C0_DOUT ? And why GPIOIN register set only P2.1 as output ? One pin as input and other as output ??

How can I declare I2C0 master mode with the 2 pins as ouput (2C0_CLKOUT and I2C0_DOUT) in CAPS ?

Thanks in advance

0