2008-02-07 01:43 AM
2011-05-17 12:49 AM
Hi all,
I start a design on STR912FAW44 and I'm using CAPS software 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 : :o #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 :-[ How can I declare I2C0 master mode with the 2 pins as ouput (2C0_CLKOUT and I2C0_DOUT) in CAPS ? Thanks in advance [ This message was edited by: jim06 on 07-02-2008 15:16 ]