|
C8051F124-GQR Datasheet, PDF (238/350 Pages) Silicon Laboratories – Mixed Signal ISP Flash MCU Family | |||
|
◁ |
C8051F120/1/2/3/4/5/6/7
C8051F130/1/2/3
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.
P0
P1
P2
P3
Crossbar Register Bits
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
â
UART0EN: XBR0.2
SCK
â
â
MISO
MOSI
ââ
ââ
SPI0EN: XBR0.1
NSS
â â NSS is not assigned to a port pin when the SPI is placed in 3-wire mode
SDA
â
âââââ
SCL
â âââââ
SMB0EN: XBR0.0
TX1
â âââââââ
RX1
â âââââââ
UART1EN: XBR2.2
CEX0
â
âââââââââ
CEX1
â âââââââââ
CEX2
CEX3
â âââââââââ
â âââââââââ
PCA0ME: XBR0.[5:3]
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
AIN2 Inputs/Non-muxed Addr H Muxed Addr H/Non-muxed Addr L Muxed Data/Non-muxed Data
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-
238
Rev. 1.4
|
▷ |