MMC2001
EXTERNAL INTERRUPTS/GPIO (EDGE PORT)
MOTOROLA
REFERENCE MANUAL
13-3
These bits are cleared by hardware reset.
13.3.2 Edge Port Data Direction Register (EPDDR)
The 16-bit read/write edge port data direction register (EPDDR) controls the direction
of the port pins. Setting any bit in this register configures the corresponding pin as an
output. Clearing any bit in this register configures the corresponding pin as an input.
Pin direction is independent of the level/edge mode programmed.
Figure 13-3 Edge Port Data Direction Register
EPDDx — Edge Port Data Direction x
0 =
Pin INT x is an input.
1 =
Pin INTx is an output.
These bits are cleared by reset.
13.3.3 Edge Port Data Register (EPDR)
The edge port data register (EPDR) is a 16-bit register. Writes to EPDR are stored in
an internal latch, and if any pin of the port is configured as an output, the data stored
for that bit is driven onto the pin. Reads of this register return the value sensed on the
pins for those pins configured as inputs, or the data stored in the register for the pins
configured as outputs.
X = Unaffected by reset
Figure 13-4 Edge Port Data Register
Table 13-2 EPPAx Field Settings
Value
Meaning
00
Pin INTx defined as level sensitive
01
Pin INTx defined as rising edge detect
10
Pin INTx defined as falling edge detect
11
Pin INTx defined as both falling and rising
edge detect
EPDDR — Edge Port Data Direction Register
10007002
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
0
0
EPDD7 EPDD6 EPDD5 EPDD4 EPDD3 EPDD2 EPDD1 EPDD0
W
RESET:
0
0
0
0
0
0
0
0
EPDR — Edge Port Data Register
10007004
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
0
0
EPD7
EPD6
EPD5
EPD4
EPD3
EPD2
EPD1
EPD0
W
RESET:
X
X
X
X
X
X
X
X
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..