Window Comparator and Direction


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Window Comparator and Direction

    If your ADC is the ADC inside the PIC then it is a possitive value.

    If you use external ADC then I guess it can be negative also.

    Ioannis

  2. #2
    Join Date
    Dec 2021
    Location
    Illinois, USA
    Posts
    12


    Did you find this post helpful? Yes | No

    Red face Re: Window Comparator and Direction

    Quote Originally Posted by Ioannis View Post
    If your ADC is the ADC inside the PIC then it is a possitive value.

    If you use external ADC then I guess it can be negative also.

    Ioannis
    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.

Similar Threads

  1. Replies: 2
    Last Post: - 31st May 2013, 18:19
  2. Check within a 16 bytes window
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th November 2012, 11:54
  3. trying to do a scroll window
    By AvionicsMaster1 in forum Test Area
    Replies: 0
    Last Post: - 7th September 2011, 14:00
  4. Button Push within 3 second Window
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd December 2005, 10:06
  5. Time window
    By Franko in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th August 2005, 16:42

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts