2019-08-08 06:41 AM
when its chip select input is high, as it is supposed to operating in an I2C mode. Will the HTS221 data bus change into an output state and override the common SPI data?
2019-08-11 07:09 AM
Hi @Michael Werson , yes, you are right, if I correctly guess what you are meaning. If the CS is LOW, the SPI is enabled for both temperature and humidity readings, and you can perform a multiple SPI reading of registers from 28h (HUMIDITY_OUT_L) to 2Bh (TEMP_OUT_H). Regards
2019-08-11 07:15 AM
Eelon,
Thanks for the response, I guess my question is more to do with the fact that when this chip is sharing a common SPI bus then the SPI data will be clocked into the HTS221 when the chip select is low, however when the chips select is high it will be responding to the common SPI signals in an I2C mode. My worry is that in there is a danger when receiving the SPI data it will somehow construe this as I2C data and start trying to output data conflicting with the common spi data.
2019-08-11 08:37 AM
I would use I2C for slow sensors such as humidity, temperature, pressure.
If multiple SPI slaves are on the bus, when NSS is high for the humidity sensor might put trouble.
If the pins are power safe, maybe using MCU NSS to control sensor power pin could be interesting alternate implementation.
2019-11-13 09:50 AM
2019-11-25 03:00 AM