Posted on May 17, 2011 at 15:06Sorry to bump this, but I've found something suspicious. The following code always returns the same value, usually 0x00 or 0xFF: Code:for(;;) { <BR> u8 data; <BR> while (!I2C_CheckEvent(I2C_EVENT_MASTER_BYTE_RECEIVED))...
Posted on May 17, 2011 at 15:06Thank you for your reply. I got confused by the example using 0xA0 as the STM8S chip address, as the I²C EEPROMs I have all use 0xA0 as their own address by default. I've changed it to 0xA2 (I was under the impression...
Posted on May 17, 2011 at 15:06I'm attempting to read data from an I²C EEPROM (AT24C256B - 32Kx8). I've hacked the I²C example code into something pretty straightforwards (comments stripped): Code:CLK_DeInit(); CLK_SYSCLKConfig(CLK_PRESCALER_CPUDI...
Posted on May 17, 2011 at 15:06Useful stuff, so thank you for writing it! I've included a link to this thread at the bottom of the tutorial I wrote. :)
Posted on May 17, 2011 at 15:06I'm using the STM8S-Discovery evaluation board, which has an integrated ST-Link and has been excellent for general debugging, but impractical for cycle-accurate timing testing (and I lack a logic analyser or oscillosco...