JAJU835 December 2021
If any of the tamper Hall sensors are enabled, logic gates are needed to combine the output of the multiple Hall-switches to produce one signal that provides information on whether the system should be in sleep mode. Figure 2-19 shows the schematic snippet of the logic gates.
If all the Hall-switches are enabled, there are three signals that are needed to properly provide information on whether the system should be in sleep mode:
The system should only be in active mode if the output of switch U2 is low, the output of U3 is high, and the output of U4 is high. In Figure 2-19, this is implemented by using the SN74HCS00 and SN74AUP1G00 to implement the following logic function: which is output at the LOGIC_OUT signal shown in Figure 2-19 . The complement of this signal is also available at the LOGIC signal shown in Figure 2-19. The SN74AUP1G00 is necessary since the active-high TPS22917 load switch is used. If the active-high TPS22917 load switch is replaced with the active-low TPS22916, the SN74AUP1G00 logic gate is not needed since the LOGIC signal can be connected directly to the TPS22916. Table 2-3 shows the system state truth table.
U2 OUTPUT ASSERTION | U3 OUTPUT ASSERTION | U4 OUTPUT | LOGIC_OUT STATE | LOGIC STATE | SYSTEM STATE | CONDITIONS |
---|---|---|---|---|---|---|
Low | Low | Low | Low | High | Sleep | External magnetic field detected by both tamper switches. The trigger is also pressed or both the stray field and wake-up sensor are fooled by an external magnet in a configuration similar to Figure 2-12. |
Low | Low |
High |
Low | High |
Sleep |
External magnetic field detected by tamper switch U3. Either the trigger is also pressed or both the stray field and wake-up sensor are fooled by an external magnet in a configuration similar to Figure 2-12. |
Low | High | Low | Low | High | Sleep | External magnetic field detected by tamper switch U4. Either the trigger is also pressed or both the stray field and wake-up sensor are fooled by an external magnet in a configuration similar to Figure 2-12. |
Low | High | High |
High |
Low |
Active |
Trigger is pressed without detecting external magnetic fields |
High | Low | Low | Low | High | Sleep | External magnetic field detected by both tamper Hall switches. The trigger might not be pressed. If the trigger is pressed,both the wake-up and tamper sensors either detect a strong positive field or a strong negative field from an external source. |
High | Low | High | Low | High | Sleep | External magnetic field detected by tamper switch U4. The trigger might not be pressed. If the trigger is pressed, both the wake-up and tamper sensors either detect a strong positive field or a strong negative field from an external source. |
High | High | Low | Low | High | Sleep | External magnetic field detected by
tamper switch U3. The trigger might not be pressed. If the trigger is pressed, both the wake-up and tamper sensors either detect a strong positive field or a strong negative field from an external source. |
High | High | High | Low | High | Sleep | External magnetic field not detected
by tamper switches U3 and U4. The trigger might not be pressed. If the trigger is
pressed, both the wake-up and tamper sensors either detect a strong positive field or a strong negative field from an external source. |
If using all the sensors is not desired, the logic gate can be configured to bypass the outputs from the Hall switches by configuring the R16, R17, and R18 3-pad footprints appropriately. By default, a 0-Ω resistor is placed at pads 2 and 3 of R16, R17, and R18, which takes the outputs from all the Hall switches and feeds it to the inputs of the logic gate. If U3 is disabled, move the 0-Ω resistor from pads 2 and 3 of R18 to pads 1 and 2, which causes the logic circuit to ignore the state of the U3 output. Similarly, if U4 is disabled, move the 0-Ω resistor from pads 2 and 3 of R17 to pads 1 and 2 so that the U3 output can be ignored by the logic circuit. If the stray field sensor is not needed, move the 0-Ω resistor from pads 2 and 3 of R16 to pads 1 and 2, which connects the output of U1 to logic circuit instead of the U2 stray-field sensor.