Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Analog and audio
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Other: hardware
Other: software
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
RSafa
Associate II
since
2019-05-06
2023-06-14
User statistics
3
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About RSafa
Options
Report User
User Activity
Posts
Replies
I have an ic MCP3428, I'm trying to connect it by I2C. Now problem is that I'm writing a code to figure out what the exact I2C address is? but it doesn't work
2019-05-06
for(uint8_t i=0;i<255;i++) { HAL_Delay(10); if(HAL_I2C_IsDeviceReady(&hi2c1,i,2,20)==HAL_OK) { uint8_t address=i; break; } }
Re: I have an ic MCP3428, I'm trying to connect it by I2C. Now problem is that I'm writing a code to figure out what the exact I2C address is? but it doesn't work
2019-05-06
At the start of any I2C based IC I test it by this code
Re: I have an ic MCP3428, I'm trying to connect it by I2C. Now problem is that I'm writing a code to figure out what the exact I2C address is? but it doesn't work
2019-05-06
you're right bro just before coding i wanted to test whether i could connect it or not as a test but i couldn't unbelievably it worked by Arduino