TAMS 81622 Installation & Operation Instructions - Tams 81622 Pull-Up Resistors
If this function is combined with the TAMS 81622 latching function, then the
interrupt will fire only once. If this is the case, the latched lines need to be
cleared before other interrupts can happen from those lines.
If one or more interrupts occur, the interrupt handler is called with the “reason”
parameter equal to I_INTR_GPIO_T61622 and the “sec” parameter is the mask
of the lines that caused the interrupt.
The mask is always a subset of the following:
T61622_DIN | T61622_STI | T61622_EIR | T61622_RDY
Examples:
Enabling DIN4 line to interrupt
igpioctrl(id, I_GPIO_T61622_INT_EN, T61622_INT_DIN04)
Checking what lines can interrupt
igpiostat(id, I_GPIO_T61622_INT_EN, &int)
TAMS 81622 Pull-up Resistors
I_GPIO_T61622_PUL controls if DOUT[0..15], CTL[0..1], PCTL, I/O, and
PRESET lines are pulled up with 4.7k resistors to +5V. There is no control for
individual lines. All lines are controlled at the same time.
Examples:
Turn all pull-ups ON
igpioctrl(id, I_GPIO_T61622_PUL, 1)
Check if pull-ups are on
igpiostat(id, I_GPIO_T61622_PUL, &pull)
Turn pull-ups OFF
igpioctrl(id, I_GPIO_T61622_PUL, 0)
TAMS 81622 Board ID
The 81622 is equipped with a rotary DIP switch. Its purpose is the identification
of each GPIO board on a system with multiple GPIO cards.
The user must set the switch position to a unique value for each card on the
system and then can read its value by using the request I_GPIO_T61622_CID to
check which physical card is associated with a specific opened session.
Examples:
Get the switch value
igpiostat(id, I_GPIO_T61622_CID, &swID)
25