-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #35 pre-loadable dig2tem, update to STM8 eForth 2.2.27.pre3
- Loading branch information
Showing
5 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\ dig2tem - W1209 STM8 eForth digit-to-temperature table | ||
\ primary table for boards w/ R2 = 20k | ||
|
||
\ note: adjust to specific sensor here if accuracy is required! | ||
\ note: @inter accepts 2..n value pairs | ||
\ interpolation table ADC digits * 32 -> temperature * 10 | ||
CREATE dig2tem 14 , \ number of value pairs | ||
1216 , 1100 , \ 1 1216 -> 11.0 C | ||
1534 , 1000 , \ 2 | ||
1982 , 900 , \ 3 | ||
2560 , 800 , \ 4 | ||
3296 , 700 , \ 5 | ||
4320 , 600 , \ 6 | ||
5634 , 500 , \ 7 | ||
7370 , 400 , \ 8 | ||
9632 , 300 , \ 9 | ||
12382 , 200 , \ 10 | ||
15522 , 100 , \ 11 | ||
19012 , 0 , \ 12 | ||
20768 , -50 , \ 13 | ||
22466 , -100 , \ 14 22466 digits -> -10.0 C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
\ dig2tem-5k1 - alternative table for boards w/ R2 = 5k1 | ||
\ by @BigVulcanDeal - see https://f.ls/YtCBi | ||
\ hint: #include dig2tem-5k1 to NVM using before loading measure.fs | ||
|
||
\ note: adjust to specific sensor here if accuracy is required! | ||
\ note: @inter accepts 2..n value pairs | ||
\ interpolation table ADC digits * 32 -> temperature * 10 | ||
CREATE dig2tem 14 , \ number of value pairs | ||
4405 , 1100 , | ||
5372 , 1000 , | ||
6697 , 900 , | ||
8156 , 800 , | ||
10031 , 700 , | ||
12263 , 600 , | ||
14760 , 500 , | ||
17478 , 400 , | ||
20324 , 300 , | ||
21701 , 250 , | ||
23108 , 200 , | ||
25565 , 100 , | ||
26509 , 00 , | ||
28559 , -50 , | ||
29371 , -100 , | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters