
P5040/P5020 Reference Design Board User Guide, Rev. 0
60
Freescale Semiconductor
Programming Model
NOTE
The direction of P5040/P5020 GPIO[0:7] must be configured.
Figure 34. GPIO Direction (PX_GPIO_DIR)
7.1.14
Data Register (PX_DATA)
The data register is a general-purpose (non-atomic) R/W register used to R/W to an internal 256-byte
SRAM array. PX_DATA resets at initial Power-ON or via chassis reset sources. The register preserves its
value between COP- or watchdog-initiated resets.
Figure 35. Power Status Register (PX_DATA)
0
1
2
3
4
5
6
7
R
R/W GPIO(0)
R/W GPIO1)
R/W GPIO(2)
R/W GPIO(3)
R/W GPIO(4)
R/W GPIO(5)
R/W GPIO(6)
R/W GPIO(7)
W
Reset
0
0
0
0
0
0
0
0
Offset
0x0C
Table 42. PX_GPIO_DIR Field Descriptions
1
1
Used when processor GPIO signals are utilized as GPIO: reg_BRDCFG2[1] = ‘1’ and reg_BRDCFG2[2] = ‘1’.
Bits
Name
Description
0-7
R/W GPIO(0-7)
Controls the FPGA GPIO[0-7] (R/W) signal direction.
• 0 - Processor output (W)
• 1 - Processor input (R)
0
1
2
3
4
5
6
7
R
DATA
W
Reset
0
0
0
0
0
0
0
0
Offset
0x0D
Table 43. PX_DATA Field Descriptions
Bits
Name
Description
0–7
DATA
PX_ADDR-indexed contents of the SRAM array.