STM32F0 I2C....
Posted: Sat Jun 06, 2015 5:16 pm
Hi,
Is STM32F0 I2C supposed to work?
When I work with I2C1, according to the logic analyser it works. Except:
* The clock speed is about 1MHz instead of 100kHz. (or 400). This seems due to the timing register being 0. I can read back the timing register right after i2cStart and it is zero.
* The i2cMasterTransmitTimeout returns error. This is due to the TC interrupt never happening. TCIE seems enabled.
Switching to I2C2 left me with "nothing": No data seems to be output outside of the chip. Suggestions?
P.S. Thinking: I could try this on my '405, how would I go about porting my application from '072 to '405? The PCB that holds the chips is the same, so all pin assignments are the same, just the CPU is different.
Is STM32F0 I2C supposed to work?
When I work with I2C1, according to the logic analyser it works. Except:
* The clock speed is about 1MHz instead of 100kHz. (or 400). This seems due to the timing register being 0. I can read back the timing register right after i2cStart and it is zero.
* The i2cMasterTransmitTimeout returns error. This is due to the TC interrupt never happening. TCIE seems enabled.
Switching to I2C2 left me with "nothing": No data seems to be output outside of the chip. Suggestions?
P.S. Thinking: I could try this on my '405, how would I go about porting my application from '072 to '405? The PCB that holds the chips is the same, so all pin assignments are the same, just the CPU is different.