English
Language : 

MMC2107 Datasheet, PDF (252/618 Pages) –
Ports Module
Freescale Semiconductor, Inc.
11.4.2.2 Port Data Direction Registers
A port data direction register (DDRx) controls the direction of the port x
pin drivers when the pins are configured for digital I/O. Setting any bit in
DDRx configures the corresponding port x pin as an output. Clearing any
bit in DDRx configures the corresponding pin as an input. When a pin is
not configured for digital I/O, its corresponding data direction bit has no
effect.
DDRx are read/write registers when not in emulation mode. Reset clears
DDRx.
Address: 0x00c0_000c — DDRA
0x00c0_000d — DDRB
0x00c0_000e — DDRC
0x00c0_000f — DDRD
0x00c0_0010 — DDRE
0x00c0_0011 — DDRF
0x00c0_0012 — DDRG
0x00c0_0013 — DDRH
0x00c0_0014 — DDRI
Bit 7
6
5
4
3
2
1
Read:
DDRx7
Write:
DDRx6
DDRx5
DDRx4
DDRx3
DDRx2
DDRx1
Reset: 0
0
0
0
0
0
0
Figure 11-3. Port Data Direction Registers (DDRx)
Bit 0
DDRx0
0
DDRx[7:0] — Port x Data Direction Bits
1 = Pin configured as output
0 = Pin configured as input
Technical Data
252
Ports Module
For More Information On This Product,
Go to: www.freescale.com
MMC2107 – Rev. 2.0
MOTOROLA