Table 9-5 Detailed Design Procedure | STEP 1 | STEP 2 | STEP 3 | STEP 4 | STEP 5 |
---|
| Equivalent Resistance Value (Ω) | VINX (V) | VINX + VGND_SHIFT(V) | ADC Code Spread | Threshold |
---|
| MIN | MAX | MIN | MAX | MIN | MAX | MIN | MAX | |
---|
State 1: Both SW1 and SW2 open | 5000 | ∞ | > 6 V | - | >6 V | - | 1023 | - | |
State 2: SW1 open and SW2 closed | 555.95 | 678.03 | 2.502 | 3.729 | 1.502 | 4.729 | 256 | 806 | 915 |
State 3: SW1 closed and SW2 open | 0 | 49.5 | 0 | 0.272 | 0 | 1.272 | 0 | 217 | 237 |
use the following procedures to calculate thresholds to program to the TIC12400-Q1 for proper switch detection:
- Calculate the equivalent resistance values at different switch states, taking into account RDIRT and the 8% resistance variation.
- Estimate the voltage established when wetting current flows through the switch by utilizing the relationship VINX = RSW_EQU × IWETT_ACT, where RSW_EQU is the equivalent switch resistance value and IWETT_ACT is the actual wetting current flowing through the switch. The 5 mA wetting current setting is selected in this design, because it best uses the dynamic range of the ADC (from 0 to 6 V). The wetting current, however, can vary depending on manufacturing process variation and operating temperature, and needs to be taken into account. Referring to the electrical table of the TIC12400-Q1 and assuming enough headroom for the current source (CSO) to operate, the 5 mA wetting current setting produces current ranging between 4.5 mA and 5.5 mA (for VS – INX ≥ 3 V condition). The voltage established on the TIC12400-Q1 input pin (VINX) can be calculated accordingly.
- Take the ground shift non-ideality into account. As defined in Section 9.3.1, the ground shift can vary between ±1 V. Therefore, effectively, the actual voltage seen at the TIC12400-Q1 can also vary up to ±1 V.
- Convert the voltage established on the INx pin into equivalent ADC code. The full-scale range of the 10-bit ADC is from 0 V to 6 V, with 6 V corresponding to the max code of 1023. Therefore, the ADC code spread for each of the 3 different switch states can be calculated accordingly.
- After the ADC code spread for each switch state is calculated, the detection threshold can be chosen to be the mid-point between the upper and lower codes of two neighboring states to give best margin for detection.