English
Language : 

PXS20RM Datasheet, PDF (1328/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
System Integration Unit Lite (SIUL)
47.5.2.11 GPIO Pad Data Input Registers (GPDI)
These registers can be used to read the GPIO pad data with a byte access.
Address: Base + 0x0800–0x0868 (27 registers)
0
1
2
3
4
5
6
7
8
R0
0
0
0
0
0
0
PDI
0
[0]
W
Reset 0
0
0
0
0
0
0
0
0
Access: User read
9
10
11
12
13
14
15
0
0
0
0
0
0
PDI
[1]
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R0
0
0
0
0
0
0
PDI
0
0
0
0
0
0
0
PDI
[2]
[3]
W
Reset 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 47-13. Port GPIO Pad Data Input register 0–3 (GPDI0_3–GPDI104_107))
Table 47-13. GPDO0_3–GPDI104_107 Field Descriptions
Field
Description
PDI[x]
Pad Data In
This bit stores the value of the external GPIO pad associated with this register.
1: The value of the data in signal for the corresponding GPIO pad is logic high
0: The value of the data in signal for the corresponding GPIO pad is logic low
Example 47-2. Accessing GPDI ports
Check if GPIO exists in pin muxing table (Section 3.4, Pin muxing)
Read Pad Data Input Register for A[0] which is GPIO[0].
32 Bit read from address 0x0600 + 0x0000
==> return value 0x--------_--------_--------_-------<GPIO[0]>
Write Pad Data Input Register for A[4] which is GPIO[4].
32 Bit read from address 0x0600 + 0x0004
==> return value 0x--------_--------_--------_-------<GPIO[4]>
Write Pad Data Input Register for G[2] which is GPIO[89].
32 Bit read from address 0x0600 + 0x0016
==> return value 0x--------_--------_-------<GPIO[89]>_--------
8 Bit read from address 0x0600 + 0x0017
Address for 32 Bit accesses = 0x0800 + [hex [GPIO Number / 4]** ]
** Returns the integer portion of the division
47-14
PXS20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor