Table 8-9. P1Ddrx Register; Table 8-10. P1Ddrx Fields; Port A/C/E/G/I/K Data Direction Register (P1Ddrx) - Sharp LH79524 User Manual

Table of Contents

Advertisement

General Purpose Input/Output

8.2.2.3 Port A/C/E/G/I/K Data Direction Register (P1DDRx)

P1DDRx is the Data Direction Register. Bits in P1DDR Register program the correspond-
ing Port pin to be either an input or an output. Port K, and Port M bits 7 and 6 are only in
the LH79524.
BIT
FIELD
RESET
RW
BIT
FIELD
RESET
RW
ADDR
BITS
31:8
7:0
8-10
31
30
29
28
27
0
0
0
0
RO
RO
RO
RO
RO
15
14
13
12
11
///
0
0
0
0
RO
RO
RO
RO
RO
Port M: 0xFFFD9000 + 0x08 (Bits 7 and 6 LH79524 Only)
NAME
///
Reserved Writing to these bits has no effect. Reading returns 0.
Port Data Direction Configures port pins as input or output.
1 = Output
PORT_DIRECTION
0 = Input
(Port M is output only and must programmed to 1 for use)

Table 8-9. P1DDRx Register

26
25
24
23
///
0
0
0
0
0
RO
RO
RO
RO
10
9
8
7
0
0
0
0
0
RO
RO
RO
RW
Port A: 0xFFFDF000 + 0x08
Port C: 0xFFFDE000 + 0x08
Port E: 0xFFFDD000 + 0x08
Port G: 0xFFFDC000 + 0x08
Port I: 0xFFFDB000 + 0x08
Port K: 0xFFFDA000 + 0x08 (LH79524 Only)

Table 8-10. P1DDRx Fields

DESCRIPTION
Version 1.0
LH79524/LH79525 User's Guide
22
21
20
19
18
0
0
0
0
0
RO
RO
RO
RO
RO
6
5
4
3
2
PORT_DIRECTION
0
0
0
0
0
RW
RW
RW
RW
RW
17
16
0
0
RO
RO
1
0
0
0
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents