C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
238
Rev. 1.4
18.1. Ports 0 through 3 and the Priority Crossbar Decoder
The Priority Crossbar Decoder, or “Crossbar”, allocates and assigns Port pins on Port 0 through Port 3 to
the digital peripherals (UARTs, SMBus, PCA, Timers, etc.) on the device using a priority order. The Port
pins are allocated in order starting with P0.0 and continue through P3.7 if necessary. The digital peripher-
als are assigned Port pins in a priority order which is listed in Figure 18.3, with UART0 having the highest
priority and CNVSTR2 having the lowest priority.
18.1.1. Crossbar Pin Assignment and Allocation
The Crossbar assigns Port pins to a peripheral if the corresponding enable bits of the peripheral are set to
a logic 1 in the Crossbar configuration registers XBR0, XBR1, and XBR2, shown in SFR Definition 18.1,
SFR Definition 18.2, and SFR Definition 18.3. For example, if the UART0EN bit (XBR0.2) is set to a
logic 1, the TX0 and RX0 pins will be mapped to P0.0 and P0.1 respectively.
Figure 18.3. Priority Crossbar Decode Table (EMIFLE = 0; P1MDIN = 0xFF)
Because UART0 has the highest priority, its pins will always be mapped to P0.0 and P0.1 when UART0EN
is set to a logic 1. If a digital peripheral’s enable bits are not set to a logic 1, then its ports are not accessi-
ble at the Port pins of the device. Also note that the Crossbar assigns pins to all associated functions when
a serial communication peripheral is selected (i.e. SMBus, SPI, UART). It would be impossible, for exam-
PIN I/O 0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
TX0
●
RX0
●
SCK
●
●
MISO
●
●
MOSI
●
●
NSS
●
●
NSS is not assigned to a port pin when the SPI is placed in 3-wire mode
SDA
●
● ● ● ● ●
SCL
●
● ● ● ● ●
TX1
●
● ● ● ● ● ● ●
RX1
●
● ● ● ● ● ● ●
CEX0
●
● ● ● ● ● ● ● ● ●
CEX1
●
● ● ● ● ● ● ● ● ●
CEX2
●
● ● ● ● ● ● ● ● ●
CEX3
●
● ● ● ● ● ● ● ● ●
CEX4
●
● ● ● ● ● ● ● ● ●
CEX5
●
● ● ● ● ● ● ● ● ●
ECI
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
ECI0E: XBR0.6
CP0
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
CP0E: XBR0.7
CP1
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
CP1E: XBR1.0
T0
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T0E: XBR1.1
/INT0
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
INT0E: XBR1.2
T1
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T1E: XBR1.3
/INT1
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
INT1E: XBR1.4
T2
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T2E: XBR1.5
T2EX
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T2EXE: XBR1.6
T4
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T4E: XBR2.3
T4EX
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
T4EXE: XBR2.4
/SYSCLK
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
SYSCKE: XBR1.7
CNVSTR0
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
CNVSTE0: XBR2.0
CNVSTR2
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
CNVSTE2: XBR2.5
AL
E
/R
D
/W
R
AIN
2
.0
/A8
AIN
2
.1
/A9
AI
N2.
2/
A10
AI
N2.
3/
A11
AI
N2.
4/
A12
AIN
2
.5
/A1
3
AIN
2
.6
/A1
4
AIN
2
.7
/A1
5
A8
m
/A0
A9
m
/A1
A
10m/
A
2
A
11m/
A
3
A
12m/
A
4
A
13m/
A
5
A
14m/
A
6
A
15m/
A
7
AD
0
/D
0
AD
1
/D
1
AD
2
/D
2
AD
3
/D
3
AD
4
/D
4
AD
5
/D
5
AD
6
/D
6
AD
7
/D
7
P0
P1
P2
P3
AIN2 Inputs/Non-muxed Addr H
Muxed Addr H/Non-muxed Addr L
Muxed Data/Non-muxed Data
UART1EN:
PCA0ME:
Crossbar Register Bits
XBR0.2
XBR0.1
XBR0.0
SMB0EN:
XBR2.2
XBR0.[5:3]
UART0EN:
SPI0EN:
Summary of Contents for C8051F12 Series
Page 2: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 2 Rev 1 4 NOTES ...
Page 104: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 104 Rev 1 4 NOTES ...
Page 112: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 112 Rev 1 4 NOTES ...
Page 176: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 176 Rev 1 4 ...
Page 184: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 184 Rev 1 4 NOTES ...
Page 197: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 Rev 1 4 197 NOTES ...
Page 198: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 198 Rev 1 4 ...
Page 210: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 210 Rev 1 4 NOTES ...
Page 218: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 218 Rev 1 4 NOTES ...
Page 234: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 234 Rev 1 4 NOTES ...
Page 258: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 258 Rev 1 4 NOTES ...
Page 272: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 272 Rev 1 4 NOTES ...
Page 286: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 286 Rev 1 4 NOTES ...
Page 308: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 308 Rev 1 4 NOTES ...
Page 340: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 340 Rev 1 4 NOTES ...
Page 348: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 348 Rev 1 4 NOTES ...