Skip to main content
PWaiba
Associate
June 29, 2022
Question

DFRO316 MCP3424 and STM32

  • June 29, 2022
  • 0 replies
  • 854 views

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);

}

    This topic has been closed for replies.