??? 10/10/08 19:26 Read: times |
#158961 - How to write ? Responding to: ???'s previous message |
Hi Andrew,
Can I write something in e2prom using i2c_transmit() function from CA ? I have a Global variable called i2cVector[30]. It's a static unsigned char. I wrote 0x00 to indicate the first address, and 0xA5 is the data that I want to write. After I call i2c_transmit function to perform the transmission. Can I do it ? i2cVector[0]=0x00; // MSB i2cVector[1]=0x00; // LSB i2cVector[2]=0xA5; // data to write i2c_transmit(AT24C256); PS. I define AT24C256 as 0x50 (0xA0 >> 1) I put two resistors 3k9 as pull-up. Tks |