我只需要 ALERT 功能。
Continous-conversion mode 下
COMP_MODE :置0设置为Traditional mode;
COMP_POL :置0 active low
COMP_LAT:置0 Non-latching comparator
COMP_QUE[1:0] :10
设置阈值
LowThreshold = 1220
highThreshold = 1280
用直流源模拟输入:ADC 采样由1800-1000,ALERT 一直为低电平。并未出现手册中 Figure 28 图形
另外:我将Hi_thresh register MSB to 1 and the Lo_thresh register MSB to 0 。ALERT pin是有连续的波形产生的,说明电路,CPU和ads1115通信 正常。
我的需求就是,ADC采样值超出阈值后,ALERT pin有电平变化,请问如何配置?
