4 I2C devices may be left in a write state if a read was occuring
5 and the CPU was reset. This may result in EEPROM data corruption.
7 The edge condition is as follows:
8 1) A read operation begins.
9 2) I2C controller issues a start command.
10 3) The I2C writes the device address.
11 4) The CPU is reset at this point.
13 Once the CPU reinitializes and the read is tried again:
14 1) The I2C controller issues a start command.
15 2) The I2C controller writes the device address.
16 3) The I2C controller writes the offset.
21 3) START "this start is ignored by most EEPROMs"
22 4) device address "EEPROM interprets this as offset"
23 5) Offset in device, "EEPROM interprets this as data to write"
25 The device will interpret this sequence as a WRITE command and
26 write rubbish into itself, i.e. the "offset" will be interpreted
27 as data to be written in location "device address".
31 !!!THIS IS AN UNDOCUMENTED I2C BUS BUG, NOT A IBM 4xx BUG!!!
33 This reset edge condition could possibly be present in every I2C
34 controller and device available. We should probably have a bus reset
35 function for all our target CPUs.
37 Many thanks to Bill Hunter for finding this serious BUG.
38 email to: <williamhunter@attbi.com>
40 Erik Theisen <etheisen@mindspring.com>
41 Tue, 5 Mar 2002 23:02:19 -0500 (Wed 05:02 MET)