This file contains hidden or 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
| '------------------------------------------------------------------------------- | |
| ' Regulates heater controls based on phase temperature parameters | |
| '------------------------------------------------------------------------------- | |
| PROCESS_PHASE: | |
| GOSUB READ_TEMPERATURE | |
| GOSUB COMPUTE_PID | |
| WHILE (elapsedTime <> 0) | |
| IF (SecondsChanged = 1) THEN | |
| elapsedTime = elapsedTime - 1 |
This file contains hidden or 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
| '------------------------------------------------------------------------------- | |
| ' Read temperature | |
| '------------------------------------------------------------------------------- | |
| READ_TEMPERATURE: | |
| 'Get a sampling of temperature values and write to temperature array | |
| FOR index = 0 TO BUFFERSIZE - 1 | |
| LOW CS | |
| SHIFTIN DAT, CLK, 0,[curTemp\16] | |
| HIGH CS |
NewerOlder