
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor
67
Programming Model
NOTE
SW registers do NOT reflect the content of physical switches.
Figure 45. Switch Register (PX_SW(1:8))
7.1.25
Switch Enable Register (PX_ENx)
The switch enable register selects the bit source PX_SWx register or corresponding switches.
Figure 46. Switch Enable Register (PX_EN(1:8))
0
1
2
3
4
5
6
7
R
SWx #1
SWx #2
SWx #3
SWx #4
SWx #5
SWx #6
SWx #7
SWx #8
W
Reset
0
0
0
0
0
0
0
0
Offset
0x20, 0x22, 0x24,...
Table 53. PX_SW (1:8) Field Descriptions
Bits
Name
Description
0–7
SWx #b
Values that will replace switch SWx #b.
0
1
2
3
4
5
6
7
R
ENx #1
ENx #2
ENx #3
ENx #4
ENx #5
ENx #6
ENx #7
ENx #8
W
Reset
0
0
0
0
0
0
0
0
Offset
0x21, 0x23, 0x25,...
Table 54. PX_EN(1:8) Field Descriptions
Bits
Name
Description
0–7
ENx #b
• 0 - External switch SWx #b controls a corresponding configuration pin; the
value is unaffected by the system controller.
• 1 - Internal register SWx #b controls a corresponding configuration pin; the
value is unaffected by the external switches.