Trying to read I2C ADC device MCP3021 with HAL I2C library
Hi all,
Can anyone help me out how I should read out the two bytes 10 bits ADC result from the MCP3021
https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/20001805C.pdf
My address is 0x4C 1001100(RD/WR)
I'm using the HAL generated library:
HAL_I2C_Mem_Read(&hi2c1, (uint16_t)ZTP_I2C_ADDRESS, 0, 8, (uint8_t*)aRxBuffer, 16, 1000);
It is not very clear to me what the units should be, bits or bytes?
