SERIES AP440 ACROPACK
USER
’S MANUAL
Acromag, Inc. Tel: 248-295-0310
- 26 - http://www.acromag.com
- 26 -
www.acromag.com
Table 3.12 Port 0 Event
Sense/Status Register (Ports 1-
3 and Similar)
BIT
READ PORT
WRITE “0”
WRITE “1”
0
Port 0 IN00
Event Status
Clear IN00 Event
Sense Flip/Flop
Re-enable IN00
Event Sense
1
Port 0 IN01
Event Status
Clear IN01 Event
Sense Flip/Flop
Re-enable IN01
Event Sense
2
Port 0 IN02
Event Status
Clear IN02 Event
Sense Flip/Flop
Re-enable IN02
Event Sense
3
Port 0 IN03
Event Status
Clear IN03 Event
Sense Flip/Flop
Re-enable IN03
Event Sense
4
Port 0 IN04
Event Status
Clear IN04 Event
Sense Flip/Flop
Re-enable IN04
Event Sense
5
Port 0 IN05
Event Status
Clear IN05 Event
Sense Flip/Flop
Re-enable IN05
Event Sense
6
Port 0 IN06
Event Status
Clear IN06 Event
Sense Flip/Flop
Re-enable IN06
Event Sense
7
Port 0 IN07
Event Status
Clear IN07 Event
Sense Flip/Flop
Re-enable IN07
Event Sense
Event Interrupt Status Register for Ports 0-3 (Enhanced Mode Bank 1, Port 6, Read Only)
Reading this register will return the event interrupt status of input ports 0-3
(bits 0-3) and the interrupt status flag (bit 7). Bit 7 of this register indicates
an event sense was detected on any of the 4 event sense ports (“1” =
interrupt asserted/event sensed). Note that the interrupt status flag may
optionally drive the Interrupt request to the system (see Interrupt Enable
and Status register).
Table 3.13 Event Interrupt
Status Register for Ports 0-3
BIT
READ EVENT STATUS REGISTER
0
Port 0 Interrupt Status (IN00-IN07)
1
Port 1 Interrupt Status (IN08-IN15)
2
Port 2 Interrupt Status (IN16-IN23)
3
Port 3 Interrupt Status (IN24-IN31)
4-6
NOT USED
7
Interrupt Status Flag
Event Polarity Control Register For Ports 0-3 (Enhanced Mode Bank 1, Ports 6, Write Only)
A write to this register controls the polarity of the input sense event for
nibbles of ports 0-3 (channels 0-
31, four channels at a time). A “1”
written to a bit in this register will cause the corresponding event sense
input lines to flag negative events (high-to-
low transitions). A “0” will
cause positive events to be sensed (low-to-high transitions). The
polarity of the event sense logic must be set prior to enabling the event
input logic. Note that no events will be detected until enabled via the
Event Sense Status & Clear Register. Further, interrupts will not be