English
Language : 

C8051F85X86X Datasheet, PDF (174/290 Pages) Silicon Laboratories – Low-Cost 8-bit MCU Family with up to 8 kB of Flash
C8051F85x/86x
21.2. Assigning Port I/O Pins to Analog and Digital Functions
Port I/O pins can be assigned to various analog, digital, and external interrupt functions. The port pins assigned to
analog functions should be configured for analog I/O, and port pins assigned to digital or external interrupt
functions should be configured for digital I/O.
21.2.1. Assigning Port I/O Pins to Analog Functions
Table 21.1 shows all available analog functions that require port I/O assignments. Table 21.1 shows the potential
mapping of port I/O to each analog function.
Table 21.1. Port I/O Assignment for Analog Functions
Analog Function
ADC Input
Potentially Assignable
Port Pins
P0.0 - P1.7
SFR(s) used for
Assignment
AMX0P, AMX0N,
PnSKIP, PnMDIN
Comparator0 Input
P0.0 - P1.7
CPT0MX, PnSKIP,
PnMDIN
Comparator1 Input
P0.0 - P1.7
CPT1MX, PnSKIP,
PnMDIN
Voltage Reference (VREF)
P0.0
REF0CN, PnSKIP,
PnMDIN
Reference Ground (AGND)
P0.1
REF0CN, PnSKIP,
PnMDIN
21.2.2. Assigning Port I/O Pins to Digital Functions
Any port pins not assigned to analog functions may be assigned to digital functions or used as GPIO. Most digital
functions rely on the crossbar for pin assignment; however, some digital functions bypass the crossbar in a manner
similar to the analog functions listed above. Table 21.2 shows all digital functions available through the crossbar
and the potential mapping of port I/O to each function.
Table 21.2. Port I/O Assignment for Digital Functions
Digital Function
Potentially Assignable Port Pins
UART0, SPI0, SMBus0, CP0, CP0A,
CP1, CP1A, SYSCLK, PCA0 (CEX0-
2 and ECI), T0, T1 or T2.
Any port pin available for assignment by the
crossbar. This includes P0.0 - P1.7 pins which
have their PnSKIP bit set to ‘0’.
Note: The crossbar will always assign UART0
pins to P0.4 and P0.5.
Any pin used for GPIO
P0.0 - P2.1
SFR(s) Used for
Assignment
XBR0, XBR1, XBR2
P0SKIP, P1SKIP,
P2SKIP
180
Preliminary Rev 0.6