Hello All; I am in need of some help. I have a program which has two analog inputs (X= AN3 and Y= AN4). The program should determine if 2V < X < 3V and 4V < Y < 5V. If both conditions are met, The output at pin RB0 should be held HIGH. If one of the two conditions are NOT met, then the output at pin RB0 should toggle between HIGH/LOW.
I think my problem is arising when the ADC goes to read the second input because when I run the program with just the X input, the program and PIC both work fine.
Attached is my .asm file if anyone would be so kind to take a quick look. Thank Again.
Steve
I think my problem is arising when the ADC goes to read the second input because when I run the program with just the X input, the program and PIC both work fine.
Attached is my .asm file if anyone would be so kind to take a quick look. Thank Again.
Steve