Hi,
Used HDC2010 to get interrupt on threshold value of humidity and temperature.
Configure it as per below order and value:
1. Reset (0x0E): 0x80
2. Humidity High threshold (0x0D) : 0x32
3. Humidity low Threshold (0x0C) : 0x14
4. Temperature High Threshold (0x0B): 0x20
5. Temperature Low Threshold (0x0A): 0x16
6. Enabled Interrupt (0x0E): | 0x04 (Read resistor and | 0x04)
7. Enabled Threshold interrupt(0x07): | 0x78 (Read resistor and | 0x78)
8. Disable DRDY (0x07): & 0x7F (Read resistor and & 0x7F)
9. Interrupt polarity (ACTIVE LOW)
10. Interrupt Mode (COMPARATOR MODE)
11. Set sample rate (1Hz)
12. Temperature resolution (14 bit)
13. Humidity Resolution (14 Bit)
14. Trigger Measurement
I am getting interrupt when temperature increase and cross high threshold value and get down to threshold and reach to normal.
but not getting interrupt when humidity level cross the threshold value. Don't why but as I read interrupt configuration for both temperature and humidity is same just we need to set the threshold.
Please find the attachment. Include API detail used to configure HDC2010.
Thanks,
Nirav Patel