thermistortables.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. #ifndef THERMISTORTABLES_H_
  2. #define THERMISTORTABLES_H_
  3. #include "Marlin.h"
  4. #define OVERSAMPLENR 16
  5. #if (THERMISTORHEATER_0 == 1) || (THERMISTORHEATER_1 == 1) || (THERMISTORHEATER_2 == 1) || (THERMISTORBED == 1) //100k bed thermistor
  6. const short temptable_1[][2] PROGMEM = {
  7. { 23*OVERSAMPLENR , 300 },
  8. { 25*OVERSAMPLENR , 295 },
  9. { 27*OVERSAMPLENR , 290 },
  10. { 28*OVERSAMPLENR , 285 },
  11. { 31*OVERSAMPLENR , 280 },
  12. { 33*OVERSAMPLENR , 275 },
  13. { 35*OVERSAMPLENR , 270 },
  14. { 38*OVERSAMPLENR , 265 },
  15. { 41*OVERSAMPLENR , 260 },
  16. { 44*OVERSAMPLENR , 255 },
  17. { 48*OVERSAMPLENR , 250 },
  18. { 52*OVERSAMPLENR , 245 },
  19. { 56*OVERSAMPLENR , 240 },
  20. { 61*OVERSAMPLENR , 235 },
  21. { 66*OVERSAMPLENR , 230 },
  22. { 71*OVERSAMPLENR , 225 },
  23. { 78*OVERSAMPLENR , 220 },
  24. { 84*OVERSAMPLENR , 215 },
  25. { 92*OVERSAMPLENR , 210 },
  26. { 100*OVERSAMPLENR , 205 },
  27. { 109*OVERSAMPLENR , 200 },
  28. { 120*OVERSAMPLENR , 195 },
  29. { 131*OVERSAMPLENR , 190 },
  30. { 143*OVERSAMPLENR , 185 },
  31. { 156*OVERSAMPLENR , 180 },
  32. { 171*OVERSAMPLENR , 175 },
  33. { 187*OVERSAMPLENR , 170 },
  34. { 205*OVERSAMPLENR , 165 },
  35. { 224*OVERSAMPLENR , 160 },
  36. { 245*OVERSAMPLENR , 155 },
  37. { 268*OVERSAMPLENR , 150 },
  38. { 293*OVERSAMPLENR , 145 },
  39. { 320*OVERSAMPLENR , 140 },
  40. { 348*OVERSAMPLENR , 135 },
  41. { 379*OVERSAMPLENR , 130 },
  42. { 411*OVERSAMPLENR , 125 },
  43. { 445*OVERSAMPLENR , 120 },
  44. { 480*OVERSAMPLENR , 115 },
  45. { 516*OVERSAMPLENR , 110 },
  46. { 553*OVERSAMPLENR , 105 },
  47. { 591*OVERSAMPLENR , 100 },
  48. { 628*OVERSAMPLENR , 95 },
  49. { 665*OVERSAMPLENR , 90 },
  50. { 702*OVERSAMPLENR , 85 },
  51. { 737*OVERSAMPLENR , 80 },
  52. { 770*OVERSAMPLENR , 75 },
  53. { 801*OVERSAMPLENR , 70 },
  54. { 830*OVERSAMPLENR , 65 },
  55. { 857*OVERSAMPLENR , 60 },
  56. { 881*OVERSAMPLENR , 55 },
  57. { 903*OVERSAMPLENR , 50 },
  58. { 922*OVERSAMPLENR , 45 },
  59. { 939*OVERSAMPLENR , 40 },
  60. { 954*OVERSAMPLENR , 35 },
  61. { 966*OVERSAMPLENR , 30 },
  62. { 977*OVERSAMPLENR , 25 },
  63. { 985*OVERSAMPLENR , 20 },
  64. { 993*OVERSAMPLENR , 15 },
  65. { 999*OVERSAMPLENR , 10 },
  66. { 1004*OVERSAMPLENR , 5 },
  67. { 1008*OVERSAMPLENR , 0 } //safety
  68. };
  69. #endif
  70. #if (THERMISTORHEATER_0 == 2) || (THERMISTORHEATER_1 == 2) || (THERMISTORHEATER_2 == 2) || (THERMISTORBED == 2) //200k bed thermistor
  71. const short temptable_2[][2] PROGMEM = {
  72. //200k ATC Semitec 204GT-2
  73. //Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  74. // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  75. {1*OVERSAMPLENR, 848},
  76. {30*OVERSAMPLENR, 300}, //top rating 300C
  77. {34*OVERSAMPLENR, 290},
  78. {39*OVERSAMPLENR, 280},
  79. {46*OVERSAMPLENR, 270},
  80. {53*OVERSAMPLENR, 260},
  81. {63*OVERSAMPLENR, 250},
  82. {74*OVERSAMPLENR, 240},
  83. {87*OVERSAMPLENR, 230},
  84. {104*OVERSAMPLENR, 220},
  85. {124*OVERSAMPLENR, 210},
  86. {148*OVERSAMPLENR, 200},
  87. {176*OVERSAMPLENR, 190},
  88. {211*OVERSAMPLENR, 180},
  89. {252*OVERSAMPLENR, 170},
  90. {301*OVERSAMPLENR, 160},
  91. {357*OVERSAMPLENR, 150},
  92. {420*OVERSAMPLENR, 140},
  93. {489*OVERSAMPLENR, 130},
  94. {562*OVERSAMPLENR, 120},
  95. {636*OVERSAMPLENR, 110},
  96. {708*OVERSAMPLENR, 100},
  97. {775*OVERSAMPLENR, 90},
  98. {835*OVERSAMPLENR, 80},
  99. {884*OVERSAMPLENR, 70},
  100. {924*OVERSAMPLENR, 60},
  101. {955*OVERSAMPLENR, 50},
  102. {977*OVERSAMPLENR, 40},
  103. {993*OVERSAMPLENR, 30},
  104. {1004*OVERSAMPLENR, 20},
  105. {1012*OVERSAMPLENR, 10},
  106. {1016*OVERSAMPLENR, 0},
  107. };
  108. #endif
  109. #if (THERMISTORHEATER_0 == 3) || (THERMISTORHEATER_1 == 3) || (THERMISTORHEATER_2 == 3) || (THERMISTORBED == 3) //mendel-parts
  110. const short temptable_3[][2] PROGMEM = {
  111. {1*OVERSAMPLENR,864},
  112. {21*OVERSAMPLENR,300},
  113. {25*OVERSAMPLENR,290},
  114. {29*OVERSAMPLENR,280},
  115. {33*OVERSAMPLENR,270},
  116. {39*OVERSAMPLENR,260},
  117. {46*OVERSAMPLENR,250},
  118. {54*OVERSAMPLENR,240},
  119. {64*OVERSAMPLENR,230},
  120. {75*OVERSAMPLENR,220},
  121. {90*OVERSAMPLENR,210},
  122. {107*OVERSAMPLENR,200},
  123. {128*OVERSAMPLENR,190},
  124. {154*OVERSAMPLENR,180},
  125. {184*OVERSAMPLENR,170},
  126. {221*OVERSAMPLENR,160},
  127. {265*OVERSAMPLENR,150},
  128. {316*OVERSAMPLENR,140},
  129. {375*OVERSAMPLENR,130},
  130. {441*OVERSAMPLENR,120},
  131. {513*OVERSAMPLENR,110},
  132. {588*OVERSAMPLENR,100},
  133. {734*OVERSAMPLENR,80},
  134. {856*OVERSAMPLENR,60},
  135. {938*OVERSAMPLENR,40},
  136. {986*OVERSAMPLENR,20},
  137. {1008*OVERSAMPLENR,0},
  138. {1018*OVERSAMPLENR,-20}
  139. };
  140. #endif
  141. #if (THERMISTORHEATER_0 == 4) || (THERMISTORHEATER_1 == 4) || (THERMISTORHEATER_2 == 4) || (THERMISTORBED == 4) //10k thermistor
  142. const short temptable_4[][2] PROGMEM = {
  143. {1*OVERSAMPLENR, 430},
  144. {54*OVERSAMPLENR, 137},
  145. {107*OVERSAMPLENR, 107},
  146. {160*OVERSAMPLENR, 91},
  147. {213*OVERSAMPLENR, 80},
  148. {266*OVERSAMPLENR, 71},
  149. {319*OVERSAMPLENR, 64},
  150. {372*OVERSAMPLENR, 57},
  151. {425*OVERSAMPLENR, 51},
  152. {478*OVERSAMPLENR, 46},
  153. {531*OVERSAMPLENR, 41},
  154. {584*OVERSAMPLENR, 35},
  155. {637*OVERSAMPLENR, 30},
  156. {690*OVERSAMPLENR, 25},
  157. {743*OVERSAMPLENR, 20},
  158. {796*OVERSAMPLENR, 14},
  159. {849*OVERSAMPLENR, 7},
  160. {902*OVERSAMPLENR, 0},
  161. {955*OVERSAMPLENR, -11},
  162. {1008*OVERSAMPLENR, -35}
  163. };
  164. #endif
  165. #if (THERMISTORHEATER_0 == 5) || (THERMISTORHEATER_1 == 5) || (THERMISTORHEATER_2 == 5) || (THERMISTORBED == 5) //100k ParCan thermistor (104GT-2)
  166. const short temptable_5[][2] PROGMEM = {
  167. // ATC Semitec 104GT-2 (Used in ParCan)
  168. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  169. // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  170. {1*OVERSAMPLENR, 713},
  171. {17*OVERSAMPLENR, 300}, //top rating 300C
  172. {20*OVERSAMPLENR, 290},
  173. {23*OVERSAMPLENR, 280},
  174. {27*OVERSAMPLENR, 270},
  175. {31*OVERSAMPLENR, 260},
  176. {37*OVERSAMPLENR, 250},
  177. {43*OVERSAMPLENR, 240},
  178. {51*OVERSAMPLENR, 230},
  179. {61*OVERSAMPLENR, 220},
  180. {73*OVERSAMPLENR, 210},
  181. {87*OVERSAMPLENR, 200},
  182. {106*OVERSAMPLENR, 190},
  183. {128*OVERSAMPLENR, 180},
  184. {155*OVERSAMPLENR, 170},
  185. {189*OVERSAMPLENR, 160},
  186. {230*OVERSAMPLENR, 150},
  187. {278*OVERSAMPLENR, 140},
  188. {336*OVERSAMPLENR, 130},
  189. {402*OVERSAMPLENR, 120},
  190. {476*OVERSAMPLENR, 110},
  191. {554*OVERSAMPLENR, 100},
  192. {635*OVERSAMPLENR, 90},
  193. {713*OVERSAMPLENR, 80},
  194. {784*OVERSAMPLENR, 70},
  195. {846*OVERSAMPLENR, 60},
  196. {897*OVERSAMPLENR, 50},
  197. {937*OVERSAMPLENR, 40},
  198. {966*OVERSAMPLENR, 30},
  199. {986*OVERSAMPLENR, 20},
  200. {1000*OVERSAMPLENR, 10},
  201. {1010*OVERSAMPLENR, 0}
  202. };
  203. #endif
  204. #if (THERMISTORHEATER_0 == 6) || (THERMISTORHEATER_1 == 6) || (THERMISTORHEATER_2 == 6) || (THERMISTORBED == 6) // 100k Epcos thermistor
  205. const short temptable_6[][2] PROGMEM = {
  206. {1*OVERSAMPLENR, 350},
  207. {28*OVERSAMPLENR, 250}, //top rating 250C
  208. {31*OVERSAMPLENR, 245},
  209. {35*OVERSAMPLENR, 240},
  210. {39*OVERSAMPLENR, 235},
  211. {42*OVERSAMPLENR, 230},
  212. {44*OVERSAMPLENR, 225},
  213. {49*OVERSAMPLENR, 220},
  214. {53*OVERSAMPLENR, 215},
  215. {62*OVERSAMPLENR, 210},
  216. {71*OVERSAMPLENR, 205}, //fitted graphically
  217. {78*OVERSAMPLENR, 200}, //fitted graphically
  218. {94*OVERSAMPLENR, 190},
  219. {102*OVERSAMPLENR, 185},
  220. {116*OVERSAMPLENR, 170},
  221. {143*OVERSAMPLENR, 160},
  222. {183*OVERSAMPLENR, 150},
  223. {223*OVERSAMPLENR, 140},
  224. {270*OVERSAMPLENR, 130},
  225. {318*OVERSAMPLENR, 120},
  226. {383*OVERSAMPLENR, 110},
  227. {413*OVERSAMPLENR, 105},
  228. {439*OVERSAMPLENR, 100},
  229. {484*OVERSAMPLENR, 95},
  230. {513*OVERSAMPLENR, 90},
  231. {607*OVERSAMPLENR, 80},
  232. {664*OVERSAMPLENR, 70},
  233. {781*OVERSAMPLENR, 60},
  234. {810*OVERSAMPLENR, 55},
  235. {849*OVERSAMPLENR, 50},
  236. {914*OVERSAMPLENR, 45},
  237. {914*OVERSAMPLENR, 40},
  238. {935*OVERSAMPLENR, 35},
  239. {954*OVERSAMPLENR, 30},
  240. {970*OVERSAMPLENR, 25},
  241. {978*OVERSAMPLENR, 22},
  242. {1008*OVERSAMPLENR, 3}
  243. };
  244. #endif
  245. #if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
  246. const short temptable_7[][2] PROGMEM = {
  247. {1*OVERSAMPLENR, 500},
  248. {46*OVERSAMPLENR, 270}, //top rating 300C
  249. {50*OVERSAMPLENR, 265},
  250. {54*OVERSAMPLENR, 260},
  251. {58*OVERSAMPLENR, 255},
  252. {62*OVERSAMPLENR, 250},
  253. {67*OVERSAMPLENR, 245},
  254. {72*OVERSAMPLENR, 240},
  255. {79*OVERSAMPLENR, 235},
  256. {85*OVERSAMPLENR, 230},
  257. {91*OVERSAMPLENR, 225},
  258. {99*OVERSAMPLENR, 220},
  259. {107*OVERSAMPLENR, 215},
  260. {116*OVERSAMPLENR, 210},
  261. {126*OVERSAMPLENR, 205},
  262. {136*OVERSAMPLENR, 200},
  263. {149*OVERSAMPLENR, 195},
  264. {160*OVERSAMPLENR, 190},
  265. {175*OVERSAMPLENR, 185},
  266. {191*OVERSAMPLENR, 180},
  267. {209*OVERSAMPLENR, 175},
  268. {224*OVERSAMPLENR, 170},
  269. {246*OVERSAMPLENR, 165},
  270. {267*OVERSAMPLENR, 160},
  271. {293*OVERSAMPLENR, 155},
  272. {316*OVERSAMPLENR, 150},
  273. {340*OVERSAMPLENR, 145},
  274. {364*OVERSAMPLENR, 140},
  275. {396*OVERSAMPLENR, 135},
  276. {425*OVERSAMPLENR, 130},
  277. {460*OVERSAMPLENR, 125},
  278. {489*OVERSAMPLENR, 120},
  279. {526*OVERSAMPLENR, 115},
  280. {558*OVERSAMPLENR, 110},
  281. {591*OVERSAMPLENR, 105},
  282. {628*OVERSAMPLENR, 100},
  283. {660*OVERSAMPLENR, 95},
  284. {696*OVERSAMPLENR, 90},
  285. {733*OVERSAMPLENR, 85},
  286. {761*OVERSAMPLENR, 80},
  287. {794*OVERSAMPLENR, 75},
  288. {819*OVERSAMPLENR, 70},
  289. {847*OVERSAMPLENR, 65},
  290. {870*OVERSAMPLENR, 60},
  291. {892*OVERSAMPLENR, 55},
  292. {911*OVERSAMPLENR, 50},
  293. {929*OVERSAMPLENR, 45},
  294. {944*OVERSAMPLENR, 40},
  295. {959*OVERSAMPLENR, 35},
  296. {971*OVERSAMPLENR, 30},
  297. {981*OVERSAMPLENR, 25},
  298. {989*OVERSAMPLENR, 20},
  299. {994*OVERSAMPLENR, 15},
  300. {1001*OVERSAMPLENR, 10},
  301. {1005*OVERSAMPLENR, 5}
  302. };
  303. #endif
  304. #if (THERMISTORHEATER_0 == 51) || (THERMISTORHEATER_1 == 51) || (THERMISTORHEATER_2 == 51) || (THERMISTORBED == 51)
  305. // 100k EPCOS (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  306. // Verified by linagee.
  307. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  308. // Advantage: Twice the resolution and better linearity from 150C to 200C
  309. const short temptable_51[][2] PROGMEM = {
  310. {1*OVERSAMPLENR, 350},
  311. {190*OVERSAMPLENR, 250}, //top rating 250C
  312. {203*OVERSAMPLENR, 245},
  313. {217*OVERSAMPLENR, 240},
  314. {232*OVERSAMPLENR, 235},
  315. {248*OVERSAMPLENR, 230},
  316. {265*OVERSAMPLENR, 225},
  317. {283*OVERSAMPLENR, 220},
  318. {302*OVERSAMPLENR, 215},
  319. {322*OVERSAMPLENR, 210},
  320. {344*OVERSAMPLENR, 205},
  321. {366*OVERSAMPLENR, 200},
  322. {390*OVERSAMPLENR, 195},
  323. {415*OVERSAMPLENR, 190},
  324. {440*OVERSAMPLENR, 185},
  325. {467*OVERSAMPLENR, 180},
  326. {494*OVERSAMPLENR, 175},
  327. {522*OVERSAMPLENR, 170},
  328. {551*OVERSAMPLENR, 165},
  329. {580*OVERSAMPLENR, 160},
  330. {609*OVERSAMPLENR, 155},
  331. {638*OVERSAMPLENR, 150},
  332. {666*OVERSAMPLENR, 145},
  333. {695*OVERSAMPLENR, 140},
  334. {722*OVERSAMPLENR, 135},
  335. {749*OVERSAMPLENR, 130},
  336. {775*OVERSAMPLENR, 125},
  337. {800*OVERSAMPLENR, 120},
  338. {823*OVERSAMPLENR, 115},
  339. {845*OVERSAMPLENR, 110},
  340. {865*OVERSAMPLENR, 105},
  341. {884*OVERSAMPLENR, 100},
  342. {901*OVERSAMPLENR, 95},
  343. {917*OVERSAMPLENR, 90},
  344. {932*OVERSAMPLENR, 85},
  345. {944*OVERSAMPLENR, 80},
  346. {956*OVERSAMPLENR, 75},
  347. {966*OVERSAMPLENR, 70},
  348. {975*OVERSAMPLENR, 65},
  349. {982*OVERSAMPLENR, 60},
  350. {989*OVERSAMPLENR, 55},
  351. {995*OVERSAMPLENR, 50},
  352. {1000*OVERSAMPLENR, 45},
  353. {1004*OVERSAMPLENR, 40},
  354. {1007*OVERSAMPLENR, 35},
  355. {1010*OVERSAMPLENR, 30},
  356. {1013*OVERSAMPLENR, 25},
  357. {1015*OVERSAMPLENR, 20},
  358. {1017*OVERSAMPLENR, 15},
  359. {1018*OVERSAMPLENR, 10},
  360. {1019*OVERSAMPLENR, 5},
  361. {1020*OVERSAMPLENR, 0},
  362. {1021*OVERSAMPLENR, -5}
  363. };
  364. #endif
  365. #if (THERMISTORHEATER_0 == 52) || (THERMISTORHEATER_1 == 52) || (THERMISTORHEATER_2 == 52) || (THERMISTORBED == 52)
  366. // 200k ATC Semitec 204GT-2 (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  367. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  368. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  369. // Advantage: More resolution and better linearity from 150C to 200C
  370. const short temptable_52[][2] PROGMEM = {
  371. {1*OVERSAMPLENR, 500},
  372. {125*OVERSAMPLENR, 300}, //top rating 300C
  373. {142*OVERSAMPLENR, 290},
  374. {162*OVERSAMPLENR, 280},
  375. {185*OVERSAMPLENR, 270},
  376. {211*OVERSAMPLENR, 260},
  377. {240*OVERSAMPLENR, 250},
  378. {274*OVERSAMPLENR, 240},
  379. {312*OVERSAMPLENR, 230},
  380. {355*OVERSAMPLENR, 220},
  381. {401*OVERSAMPLENR, 210},
  382. {452*OVERSAMPLENR, 200},
  383. {506*OVERSAMPLENR, 190},
  384. {563*OVERSAMPLENR, 180},
  385. {620*OVERSAMPLENR, 170},
  386. {677*OVERSAMPLENR, 160},
  387. {732*OVERSAMPLENR, 150},
  388. {783*OVERSAMPLENR, 140},
  389. {830*OVERSAMPLENR, 130},
  390. {871*OVERSAMPLENR, 120},
  391. {906*OVERSAMPLENR, 110},
  392. {935*OVERSAMPLENR, 100},
  393. {958*OVERSAMPLENR, 90},
  394. {976*OVERSAMPLENR, 80},
  395. {990*OVERSAMPLENR, 70},
  396. {1000*OVERSAMPLENR, 60},
  397. {1008*OVERSAMPLENR, 50},
  398. {1013*OVERSAMPLENR, 40},
  399. {1017*OVERSAMPLENR, 30},
  400. {1019*OVERSAMPLENR, 20},
  401. {1021*OVERSAMPLENR, 10},
  402. {1022*OVERSAMPLENR, 0}
  403. };
  404. #endif
  405. #if (THERMISTORHEATER_0 == 55) || (THERMISTORHEATER_1 == 55) || (THERMISTORHEATER_2 == 55) || (THERMISTORBED == 55)
  406. // 100k ATC Semitec 104GT-2 (Used on ParCan) (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  407. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  408. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  409. // Advantage: More resolution and better linearity from 150C to 200C
  410. const short temptable_52[][2] PROGMEM = {
  411. {1*OVERSAMPLENR, 500},
  412. {76*OVERSAMPLENR, 300},
  413. {87*OVERSAMPLENR, 290},
  414. {100*OVERSAMPLENR, 280},
  415. {114*OVERSAMPLENR, 270},
  416. {131*OVERSAMPLENR, 260},
  417. {152*OVERSAMPLENR, 250},
  418. {175*OVERSAMPLENR, 240},
  419. {202*OVERSAMPLENR, 230},
  420. {234*OVERSAMPLENR, 220},
  421. {271*OVERSAMPLENR, 210},
  422. {312*OVERSAMPLENR, 200},
  423. {359*OVERSAMPLENR, 190},
  424. {411*OVERSAMPLENR, 180},
  425. {467*OVERSAMPLENR, 170},
  426. {527*OVERSAMPLENR, 160},
  427. {590*OVERSAMPLENR, 150},
  428. {652*OVERSAMPLENR, 140},
  429. {713*OVERSAMPLENR, 130},
  430. {770*OVERSAMPLENR, 120},
  431. {822*OVERSAMPLENR, 110},
  432. {867*OVERSAMPLENR, 100},
  433. {905*OVERSAMPLENR, 90},
  434. {936*OVERSAMPLENR, 80},
  435. {961*OVERSAMPLENR, 70},
  436. {979*OVERSAMPLENR, 60},
  437. {993*OVERSAMPLENR, 50},
  438. {1003*OVERSAMPLENR, 40},
  439. {1010*OVERSAMPLENR, 30},
  440. {1015*OVERSAMPLENR, 20},
  441. {1018*OVERSAMPLENR, 10},
  442. {1020*OVERSAMPLENR, 0}
  443. };
  444. #endif
  445. #define _TT_NAME(_N) temptable_ ## _N
  446. #define TT_NAME(_N) _TT_NAME(_N)
  447. #ifdef THERMISTORHEATER_0
  448. #define heater_0_temptable TT_NAME(THERMISTORHEATER_0)
  449. #define heater_0_temptable_len (sizeof(heater_0_temptable)/sizeof(*heater_0_temptable))
  450. #else
  451. #ifdef HEATER_0_USES_THERMISTOR
  452. #error No heater 0 thermistor table specified
  453. #else // HEATER_0_USES_THERMISTOR
  454. #define heater_0_temptable 0
  455. #define heater_0_temptable_len 0
  456. #endif // HEATER_0_USES_THERMISTOR
  457. #endif
  458. #ifdef THERMISTORHEATER_1
  459. #define heater_1_temptable TT_NAME(THERMISTORHEATER_1)
  460. #define heater_1_temptable_len (sizeof(heater_1_temptable)/sizeof(*heater_1_temptable))
  461. #else
  462. #ifdef HEATER_1_USES_THERMISTOR
  463. #error No heater 1 thermistor table specified
  464. #else // HEATER_1_USES_THERMISTOR
  465. #define heater_1_temptable 0
  466. #define heater_1_temptable_len 0
  467. #endif // HEATER_1_USES_THERMISTOR
  468. #endif
  469. #ifdef THERMISTORHEATER_2
  470. #define heater_2_temptable TT_NAME(THERMISTORHEATER_2)
  471. #define heater_2_temptable_len (sizeof(heater_2_temptable)/sizeof(*heater_2_temptable))
  472. #else
  473. #ifdef HEATER_2_USES_THERMISTOR
  474. #error No heater 2 thermistor table specified
  475. #else // HEATER_2_USES_THERMISTOR
  476. #define heater_2_temptable 0
  477. #define heater_2_temptable_len 0
  478. #endif // HEATER_2_USES_THERMISTOR
  479. #endif
  480. #ifdef THERMISTORBED
  481. #define bedtemptable TT_NAME(THERMISTORBED)
  482. #define bedtemptable_len (sizeof(bedtemptable)/sizeof(*bedtemptable))
  483. #else
  484. #ifdef BED_USES_THERMISTOR
  485. #error No bed thermistor table specified
  486. #endif // BED_USES_THERMISTOR
  487. #endif
  488. #endif //THERMISTORTABLES_H_