As I'm using the variable "w3" in other places and have no further variables available, is it somehow possible to release a variable with a poke and peek commando?
Hopefully that isn't a too stupid question!!
Addresses :
PICAXE-28X 16F873A = 112 : $50-$7F / $C0-$FF
Symbol b20 = $50
Poke b20, b1
Peek b20, b1
I have tried with the commands:
Poke b20, ADCvolt
And then fetching the value again with:
Peek b20, ADCvolt
I'm would like to use the commands in the Basic-code below.
<code><pre><font size=2>
Symbol ADCvolt = W3 ;B6,B7
ReadFlowVolt:
READADC 3,ADCvolt
If ADCvolt> ADCmax then SetHiVolt
If ADCvolt< ADCmin then SetLoVolt
Goto ReadFlowVolt_Ialt
SetHiVolt:
ADCmax = ADCvolt
Goto ReadFlowVolt_Ialt
SetLoVolt:
ADCmin = ADCvolt
ReadFlowVolt_Ialt:
Return
</font></pre></code>
regards
Monie
Hopefully that isn't a too stupid question!!
Addresses :
PICAXE-28X 16F873A = 112 : $50-$7F / $C0-$FF
Symbol b20 = $50
Poke b20, b1
Peek b20, b1
I have tried with the commands:
Poke b20, ADCvolt
And then fetching the value again with:
Peek b20, ADCvolt
I'm would like to use the commands in the Basic-code below.
<code><pre><font size=2>
Symbol ADCvolt = W3 ;B6,B7
ReadFlowVolt:
READADC 3,ADCvolt
If ADCvolt> ADCmax then SetHiVolt
If ADCvolt< ADCmin then SetLoVolt
Goto ReadFlowVolt_Ialt
SetHiVolt:
ADCmax = ADCvolt
Goto ReadFlowVolt_Ialt
SetLoVolt:
ADCmin = ADCvolt
ReadFlowVolt_Ialt:
Return
</font></pre></code>
regards
Monie