I am using the internal ADC on the PIC18F45K80 but the question I was having was determining if I was inside a window of +/- 40 counts. I was concerned that RefPosition - CurPosition could give me a negative result but I see how to handle it now. Thanks for all the help.





Bookmarks