I got troubles in programming I2C between PIC16F1513 and CCS811 gas sensor. I can detect the sensor (read hardware id of that sensor 0x81). When I read values in the Status register of that sensor, I receive a bit on ERROR notification, but when I checked value from ERROR register, it showed nothing. I don't know the reason. Maybe I have a problem in configuration, does anyone help me out? Thank you so much.
These codes that I used to check the sensor and read values from Status Register (0x00). I choose Mode 1 in operation, reading sensing signal every second.
I've just finished testing. Actually, when I reading data, I did not need to check DATA_READY. I don't know why just read byte to byte in that sensor. This sensor is so sensitive and look quite good for gas detecting application.
I'm using the same sensor but with CC3200, i have a problem during the initialization of the sensor, could you pleaze helpe me?
I have followed the CCS811 programming and interfacing guide, but when i write the value of the measurment mode register, the value writen is not updated, i can juste read the value 0xFD ; instead of the value written (0x20).
would you please help me in this issue