cancel
Showing results for 
Search instead for 
Did you mean: 

DFRO316 MCP3424 and STM32

PWaiba
Associate II

I am trying to know the status of MCP3424, either it is connected or not to the master STM32 with defined address 0x68. The ADC module gets connected with the Arduino in same address but using STM32, I am not able to get connected with the following code:

if((HAL_I2C_IsDeviceReady(&hi2c1, 0x68 << 1, 100, 1000))==HAL_OK){

HAL_UART_Transmit(&huart2, "device connected\r\n", 10, 10);

}

else{

HAL_UART_Transmit(&huart2, "no device\r\n", 100, 10);

}

0 REPLIES 0