User manual

27 Chapter 3
d) When the input signals at channels PA01, PA02 and PA07 are high and
PA06 is low, an interrupt signal will be generated. This result is not
affected by the states of channels PA00, PA03, PA04 and PA05.
3.3.8 Change of State Interrupt Function
The PCI-1753/1753E also provides the change of state interrupt function
for port B0. It monitors the status of the enabled channels of port B0,
which are chosen in Base+28 (or Base+60 for the PCI-1753E). When
one of the enabled channels changes its state, the PCI-1753 delivers an
interrupt signal to the system to handle this event. The following is an
example.
Example 3.2 Assume that the change of state interrupt function for the
I/O channels PB01, PB02, PB06 and PB07 on the PCI-1753E are enabled
(i.e. the signals in PB00, PB03, PB04 and PB05 on the PCI-1753E and
port B0 of the PCI-1753 are ignored during the change of state process).
When a change of state occurs in either PB01 or PB02 or PB06 or PB07,
an interrupt signal will be delivered to the system.
a) First, enable the change of state interrupt function for PB01, PB02,
PB06 and PB07 of the PCI-1753E.
b) Then, enable the change of state interrupt function for port B0 of the
PCI-1753E by writing a “1” in bit 2 of Base+48.
c) When a change of state occurs in PB01 or PB02 or PB06 or PB07 on
the PCI-1753E, an interrupt signal is generated.
Bit #
76543210
Base+60
11000110
M2 Description
1 Enable the change of state interrupt function for port A0
0 Disable the change of state interrupt function for port A0