English
Language : 

MC68HC901 Datasheet, PDF (37/73 Pages) Motorola, Inc – Multi-Function Peripheral
General Purpose Input/Output Port
the active edge register will cause the associated input to generate an interrupt on the one-
to-zero transition. Writing a one to the edge bit will produce an interrupt on the zero-to-one
transition of the corresponding line. When the processor sets a bit, interrupts will be
generated on the rising edge of the associated input signal. When the processor clears a bit,
interrupts will be generated on the falling edge of the associated input signal.
AER REGISTER
BIT
7
FIELD
GPIP7
RESET
0
ADDR
6
GPIP6
0
5
GPIP5
0
4
3
GPIP4
GPIP3
0
0
$03
2
GPIP2
0
1
GPIP1
0
0
GPIP0
0
GPIP7-GPIP0 – General Purpose I/O Port
0 = Interrupts will be generated on the falling edge of the associated input signal.
1 = Interrupts will be generated on the rising edge of the associated input signal.
NOTE
The inputs to the exclusive-OR of the transition detector are the
edge bit and the input buffer. As a result, writing the AER may
cause an interrupt-producing transition, depending upon the
state of the input. So, the AER should be configured before
enabling interrupts via the interrupt enable registers (IERA and
IERB). Also, changing the edge bit while interrupts are enabled
may cause an interrupt on the corresponding channel.
5.1.3 Data Direction Register (DDR)
The data direction register (DDR) allows the programmer to define I0 through I7 as inputs
or outputs by writing the corresponding bit. When a bit of the data direction register is written
as a zero, the corresponding interrupt I/O pin will be a high-impedance input. Writing a one
to any bit of the data direction register will cause the corresponding pin to be configured as
a push-pull output.
DDR REGISTER
BIT
7
FIELD
GPIP7
RESET
0
ADDR
6
GPIP6
0
5
GPIP5
0
4
3
GPIP4
GPIP3
0
0
$05
2
GPIP2
0
1
GPIP1
0
0
GPIP0
0
GPIP7-GPIP0 – General Purpose I/O Port
0 = Associated I/O line is defined to be an input.
1 = Associated I/O line is defined to be an output.
5-2
MC68HC901 USER’S MANUAL
MOTOROLA