Hello all,
I am suffering from a problem with adc compares.
I am reading an input on adc 0 into B0, reading a upper limit on adc1 (b1)and a lower linit on adc 2 (b3).
How do I compare the register values of the variables b0, b1 etc.
I have tried if B0 >= B1 then etc but this gives me a syntax error which means it is incorrect. I assume these variable registers contain the values read by the adc and are positive integers from 0 to 5 volts.
What am I doing wrong. The examples all show b0 variables being compared to 1 or another number and if I make b1 an integer it passes the syntax ok.
If b1 is equal to an integer then what is the register showing when the 2 variables are compared.
Would appreciate any help.
Cobber
I am suffering from a problem with adc compares.
I am reading an input on adc 0 into B0, reading a upper limit on adc1 (b1)and a lower linit on adc 2 (b3).
How do I compare the register values of the variables b0, b1 etc.
I have tried if B0 >= B1 then etc but this gives me a syntax error which means it is incorrect. I assume these variable registers contain the values read by the adc and are positive integers from 0 to 5 volts.
What am I doing wrong. The examples all show b0 variables being compared to 1 or another number and if I make b1 an integer it passes the syntax ok.
If b1 is equal to an integer then what is the register showing when the 2 variables are compared.
Would appreciate any help.
Cobber