STC8A8K64D4 Series Manual
-
3 Function pins switch
Some special peripherals of STC8A8K64D4 series of microcontrollers can be switched among several I/O pins to realize
one peripheral used as multiple device through time-sharing, such as UART, SPI, PCA, I2C and bus control pins.
3.1 Register related to function pin switch
Bus speed control register
Peripheral port switch register 1
Peripheral port switch register 2
Master clock output control register
LCM Interface Configuration
Register
LCM Interface Configuration
Register 2
3.1.1 Bus Speed Control Register (BUS_SPEED)
RW_S[1:0]: External bus RD/WR control line select bits
3.1.2 Peripheral port switch register 1(P_SW1) (for UART1, CCP, SPI
switching)
S1_S[1:0]USART1 pin selection bits
CCP_S[1:0]: PCA pin selection bits