This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIC12400-Q1: ADC & Comparator Mode

Part Number: TIC12400-Q1
Other Parts Discussed in Thread: TIC12400

Hi,

 In TIC12400, I came to know from the datasheet that the input pins can be configured into two modes. ADC or comparator. But in input channels IN0 to IN11 there are only one threshold for the ADC. So then can somebody please explain how configuring these channels in ADC mode will be better compared to comparator mode.

  • Hemanth,

    An engineer has been notified of your question and will respond by end of business CST on 2/14/2023.

    Regards,

    Eric Hackett

  • Hi Hemanth,

    Comparator mode only has 4 voltage threshold options (2V, 2.7V, 3V, and 4V).  The ADC has a 0-6V range, and each threshold can be assigned to any one of the 1023 digital codes.  This gives roughly a 5mV resolution and allows you to set a custom threshold that may be more suitable for your specific application than the 4 generic thresholds used with the comparator.  For example if you needed a 5V, 3.5V, or even a 1V threshold, those are possible with the ADC.

    Also, the raw ADC code can be read back in addition to just setting the threshold used to determine a switch state change and generate an interrupt.  This is extra information that can be used that is not available when the INx pin is configured for Comparator mode and the only information available is whether the INx pin voltage is above or below the threshold.  

    However, "better" is a relative term and you are free to configure the pins for either ADC or Comparator mode on an individual basis.  Some pins can be used in ADC mode and others used in comparator mode at the same time.  Feel free to use the configuration that best fits your application needs.

    Regards,

    Jonathan

  • Hi Jonathan,

    Thanks for your response. 

  • Hi Jonathan,

    Whether switch debouncing is taken care by the TIC12400 device?

  • Hi Hemanth,

    Yes, the device has a software debounce approach that allows you to configure up to 4 consecutive polling cycles of a stable reading that was different than the previous state before it will generate an interrupt to indicate a switch's state change.  If the switch is bouncing during the polling cycle, the successive polling cycles may sample different values while it is stabilizing.  Requiring multiple consecutive polling cycles to be of the same value is equivalent to a hardware debounce filter.

    The device calls this a Detection filter and is described in section 8.3.9.5 of the datasheet.

    Regards,

    Jonathan