Hi All; I'm writing code in assembly language working with a PIC16F88 and its ADC. I have two analog inputs which are stored in working registers once the ADC acquisition is complete. What is the best approach to determine if these values are within a specified range? This would be equivalent to an IF ELSE statement in C. For Example, I have two variables X and Y, and if I wanted to check to see if 1V < X < 2V and if 2 < Y < 3V, and if both statements are true, then output a logic 1. And if either of the two statements are false, then output a logic 0.
---That is the overall goal I have in mind. I feel that with assembly, doing conditional statements like this is difficult, but not impossible and it will just take many loops of bit testing and such....
If anyone has any ideas that they think could be helpful to me any suggestions would be greatly appreciated! Thanks in Advance....Steve
---That is the overall goal I have in mind. I feel that with assembly, doing conditional statements like this is difficult, but not impossible and it will just take many loops of bit testing and such....
If anyone has any ideas that they think could be helpful to me any suggestions would be greatly appreciated! Thanks in Advance....Steve