SCPA070 june   2023 TCAL6408 , TCAL6416 , TCAL9538 , TCAL9539 , TCAL9539-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Introduction
  5. Programmable Output Drive Strength
  6. Programmable Pull-Up or Pull-Down Resistors
  7. Latchable Inputs
  8. Maskable Interrupt
  9. Interrupt Status Register
  10. Programmable Open-Drain and Push-Pull Outputs
  11. Benefits of Using TCAL I/O Expanders Versus TCA I/O Expanders
  12. Summary
  13. 10References

Latchable Inputs

Latchable inputs are useful when the user wants to maintain that an interrupt is not lost during an input’s transition back to the original state. With latchable inputs disabled, a state change in the corresponding input pin generates an interrupt on /INT, and stores the input logic value into the corresponding bit of the input port register (registers 0 and 1). A read of the input register clears the interrupt flag. If the input goes back to the initial logic state before the input port register is read, then the interrupt flag on /INT clears itself which can cause issues because an interrupt can be lost if not read before the input state changes.

This behavior can be observed in the scope capture in Figure 4-1. Input P04 on the TCAL6416 is driven from a high to low logic state. After some time passes, the input is driven back to high. Note that the interrupt that was asserted to low goes back to high once the original input state on P04 is achieved. In this case, the interrupt is lost.

GUID-20230601-SS0I-RWFH-HCLG-9HRPVTS89VT4-low.png Figure 4-1 Interrupt is Asserted and Lost Due to Input Un-Latched

This situation changes when the latchable input is enabled. A change of state of the input generates an interrupt and the input logic value is loaded into the corresponding bit of the input port register (registers 0 and 1). A read of the input port register clears the interrupt flag on /INT. In this case, if the input port register is read after the input pin returns to the initial logic state, the interrupt flag on /INT does not clear, and the corresponding bit of the input port register keeps the logic value that initiated the interrupt. This process maintains that no triggered interrupt is lost due to a transition back to original state on the input pin. This behavior can be observed in the scope capture in Figure 4-2.

GUID-20230601-SS0I-B5HM-4N36-6QDQSNL5MJZB-low.png Figure 4-2 Interrupt is Asserted and Kept Due to Input Latched

This behavior is a key difference between TCA devices and TCAL devices concerning the latchable input feature of Agile I/O’s.