CLCxSELn Registers
The CLCxSEL Registers, contained in the Configurable Logic Cell (CLC), control which inputs are used with the CLC.
CLC Input Sources
The CLC will have multiple inputs to select from and each will have a 3-bit code associated with it, as shown in the accompanying table. Each input can be connected to one of the two input data gates through a multiplexer that is controlled by the CLCxSEL0 and CLCxSEL1 registers.
![Table showing CLC Inputs](/xwiki/bin/download/products/mcu-mpu/8bit-pic/peripherals/clc/clcsel/WebHome/CLCInputs.png?width=600&height=329&rev=1.1)
From the PIC16F1507: 20-Pin Flash, 8-Bit Microcontrollers datasheet
The Input Selections are controlled by the CLCxSEL0 and CLCxSEL1 registers by setting the input 3-bit code.
- The CLCxSEL0 register controls the data input gates 1 and 2. Bits 0-2 control input 1 and bits 4-6 control input 2.
CLCxSEL0: MULTIPLEXER DATA 1 AND 2 SELECT REGISTER
![Screenshot from the datasheet showing CLCxSEL0: MULTIPLEXER DATA 1 AND 2 SELECT REGISTER](/xwiki/bin/download/products/mcu-mpu/8bit-pic/peripherals/clc/clcsel/WebHome/CLCSEL0.png?width=600&height=452&rev=1.1)
From the PIC16F1507: 20-Pin Flash, 8-Bit Microcontrollers datasheet
The CLCxSEL1 register controls the data input gates 3 and 4. Bits 0-2 control input 3 and bits 4-6 control input 4.
CLCxSEL1: MULTIPLEXER DATA 3 AND 4 SELECT REGISTER
![Screenshot from the datasheet showing CLCxSEL1: MULTIPLEXER DATA 3 AND 4 SELECT REGISTER](/xwiki/bin/download/products/mcu-mpu/8bit-pic/peripherals/clc/clcsel/WebHome/CLCSEL1.png?width=600&height=455&rev=1.1)
From the PIC16F1507: 20-Pin Flash, 8-Bit Microcontrollers datasheet