|
发表于 2022-7-13 22:45:48
|
显示全部楼层
本帖最后由 xiaolaba 于 2022-7-13 22:49 编辑
恰巧看到這篇
還有這篇 http://www.technoblogy.com/show?2G9S
應該是做同樣的事情,
大致理解, 16 (4^2) 個ADC 數據累積
總數 除以 2^2
是不是呢
- SetupThermocouple();
- ReadThermocouple(); // Throw away first reading
- int reading = 0;
-
- // 16個ADC 數據累積
- for (int i=0; i<16; i++) reading = reading + ReadThermocouple();
-
- // 總數 除以 2^2
- reading = Convert(max((reading>>2) + ADCOffset*4, 0));
-
- Scale = 2;
- PlotTemperature(reading + internal, 0, 0);
复制代码
|
|