LH79524/LH79525 User’s Guide General Purpose Input/Output
Version 1.0 8-9
8.2.2.2 Port B/D/F/H/J/L/N Data Register (P2DRx)
Values written to P1DRx are output on the PB/PD/PF/PH/PJ/PL/PN pins if the correspond-
ing P1DDRx Data Direction bits are set for output. When the corresponding Data Direction
Register bit for a pin is set for input, the value read is the state of the GPIO pin. Reading
this register returns either:
• The last bit value written if the bit is configured as an output.
• The current value on the corresponding port pin if configured as an input.
Port L is only in the LH79525. Port J is an input only port. This register will not output values
onto the Port J pins.
Table 8-7. P2DRx 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_DATA
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RW RW RW RW RW RW RW RW
ADDR
Port B: 0xFFFDF000 + 0x04
Port D: 0xFFFDE000 + 0x04
Port F: 0xFFFDD000 + 0x04
Port H: 0xFFFDC000 + 0x04
Port J: 0xFFFDB000 + 0x04
Port L: 0xFFFDA000 + 0x04 (LH79524 Only)
Port N: 0xFFFD9000 + 0x04 (4 bits, LH79524 Only)
Table 8-8. P2DRx Fields
BITS NAME DESCRIPTION
31:8 /// Reserved Reading this field returns 0. Write the reset value.
7:0 PORT_DATA
Port Input/Output Data Contains the bit-by-bit Port input or output data,
depending on how the corresponding bit in the P1DDRx Register is
programmed.
Note that Port N consists of 4 bits and exists on LH79524 only.