Interface and Connectivity ICs
MEMS and Sensors
Analog and Audio
EMI Filtering and Signal Conditioning
Power Management and Motor Control
SPC5 Automotive MCUs
ST25 NFC/RFID Tags and Readers
Switches and Multiplexers
STM32 MCUs Community
MEMS and Sensors Community
Automotive MCUs Community
STM8 MCUs Community
Help the community
Share your activities
Contribute your knowledge
About this community
to create and rate content, and to follow, bookmark, and share content with other members.
Question asked by
on Sep 18, 2006
on May 17, 2011 by 8926
Show 0 Likes
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
May 17, 2011 11:31 AM
1. What is the correct way to reset the I2C hardware to initiate another write or read if error condition?
2. How can I get the status of the BUSY flag (in the ST C-compiler) without affecting the reset of the flags in I2CSR1?
I curerntly have I2C working in master mode on ST92F150 with interrupts (no DMA) with an EEPROM and RTC with no problems. However, I have trouble trying to detect these I2C cards that are not always in the system. I do this on initalization.
I count the number of AF interrupts I get and if greater than 5, I indicate there is nothing at this address and check another one. When not detected, I found that clearing the START bit sometimes works. I have also tried clearing the START and setting the STOP. In both cases, it sometime causes the interface to fail reading the RTC or EEPROM. I think it fails because the interface is alsway busy.
[ This message was edited by: Smiles on 18-09-2006 20:30 ]
Show 0 Likes
Retrieving data ...
2018 STM32 Wish List
STM32F769I-DISCO: No audio output from wm8994
STM32CubeMX V4.24.0 code generation failure (bug report)
CubeMX SDIO DMA FatFS configuration
Please provide a way to download older version of the cube.