SERIES AP470 ACROPACK
USER
’S MANUAL
Acromag, Inc. Tel: 248-295-0310
- 27 -
http://www.acromag.com
- 27 -
www.acromag.com
Event Sense Status & Clear Registers For I/O0-I/O47 (Enhanced Mode Bank 1, Ports 0-5, Read/Write)
(BAR0 + 0x0000 0008 –
0x0000 001C)
Each I/O line of each port includes an event sense input. Reading each port
will return the status of each I/O port’s sense lines. Writing ‘0’ to a bit
position of each port will clear the event on the corresponding line. When
writing ports 0-5 of Enhanced Mode bank 1, each data bit written with logic
0 clears the corresponding event sense flip/flop. Further, each data bit of
ports 0-5 must be written with a 1 to re-enable the corresponding event
sense input after it is cleared. Reading ports 0-5 of the Enhanced Mode bank
1 returns the current event sense flip/flop status.
If both the Event Sense and Board Interrupt Enable bits are set, then
interrupts can be generated. Changing Debounce control registers while
interrupts are enabled can cause false interrupts. It is recommended that
interrupts be disabled prior to accessing Debounce control registers.
Table 3.12 Port 0 Event
Sense/Status Register (Ports 1-
5 Similar)
BIT
READ PORT
WRITE “0”
WRITE “1”
0
Port 0 I/O0
Event Status
Clear I/O0 Event
Sense Flip/Flop
Re-enable I/O0
Event Sense
1
Port 0 I/O1
Event Status
Clear I/O1 Event
Sense Flip/Flop
Re-enable I/O1
Event Sense
2
Port 0 I/O2
Event Status
Clear I/O2 Event
Sense Flip/Flop
Re-enable I/O2
Event Sense
3
Port 0 I/O3
Event Status
Clear I/O3 Event
Sense Flip/Flop
Re-enable I/O3
Event Sense
4
Port 0 I/O4
Event Status
Clear I/O4 Event
Sense Flip/Flop
Re-enable I/O4
Event Sense
5
Port 0 I/O5
Event Status
Clear I/O5 Event
Sense Flip/Flop
Re-enable I/O5
Event Sense
6
Port 0 I/O6
Event Status
Clear I/O6 Event
Sense Flip/Flop
Re-enable I/O6
Event Sense
7
Port 0 I/O7
Event Status
Clear I/O7 Event
Sense Flip/Flop
Re-enable I/O7
Event Sense