I am working in ABPDLNN100MG2A3 honeywell pressure sensor which is an i2c interface, i am using stm32 microcontroller to interface with the pressure sensor. I have read the raw values from the sensor and saved it in two variable. now I need to convert the raw values to millibar pressure values.
i2c_data[0] = 0x08;
//i2c_data[1] = 0x08;
while(1)
{
HAL_I2C_Master_Transmit(&hi2c2, (0x71<<1), i2c_data, 1, 100);
HAL_I2C_Master_Receive(&hi2c2,(0x28<<1),ABP_Pressure,2,100);
sprintf(data, "%u\r\n", (uint16_t)(((ABP_Pressure[0]<<8)|ABP_Pressure[1])));
//sprintf(data, "%u\r\n", ((100-0)*((ABP_Pressure[0]<<8)|ABP_Pressure[1]))/16384);
HAL_UART_Transmit (&huart1, data, strlen (data), 100);
//sprintf(data, " %u\r\n", ABP_Pressure[1]);
//HAL_UART_Transmit (&huart1, data, strlen (data), 100);
HAL_Delay(200);
}