LH79524/LH79525 User’s Guide General Purpose Input/Output
Version 1.0 8-11
8.2.2.4 Port B/D/F/H/L/N Data Direction Register
P2DDRx is the Data Direction Register. Bits in P2DDRx Register program the correspond-
ing Port pin to be either an input or an output. Port J has no P2DDRx.
Table 8-11. P2DDRx Register
BIT 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
FIELD ///
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
BIT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FIELD /// PORT_DIRECTION
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RW RW RW RW RW RW RW RW
ADDR
Port B: 0xFFFDF000 + 0x0C
Port D: 0xFFFDE000 + 0x0C
Port F: 0xFFFDD000 + 0x0C
Port H: 0xFFFDC000 + 0x0C
Port L: 0xFFFDA000 + 0x0C (LH79524 Only)
Port N: 0xFFFD9000 + 0x0C (LH79524 Only)
Table 8-12. P2DDRx Register Definitions
BITS NAME DESCRIPTION
31:8 /// Reserved Writing to these bits has no effect. Reading returns 0.
7:0 PORT_DIRECTION
Configures port pins as input or output.
1 = Output
0 = Input