24.1.1 Data Selection

Data inputs are selected with CLCnSEL0 through CLCnSEL3 registers.
Important: Data selections are undefined at power-up.

Depending on the number of bits implemented in the CLCnSELy registers, there can be as many as 256 sources available as inputs to the configurable logic. Four multiplexers are used to independently select these inputs to pass on to the next stage as indicated on the left side of the following diagram.

Data inputs in the figure are identified by a generic numbered input name.

Figure 24-2. Input Data Selection and Gating
Note: All controls are undefined at power-up.

The CLC Input Selection table correlates the generic input name to the actual signal for each CLC module. The table column labeled ‘DyS Value’ indicates the MUX selection code for the selected data input. DyS is an abbreviation for the MUX select input codes, D1S through D4S, where ‘y’ is the gate number.

Table 24-1. CLC Input Selection
Value DescriptionValue (cont.)Description (cont.)
[0] 0000 0000CLCIN0PPS[32] 0010 0000NCO1
[1] 0000 0001CLCIN1PPS[33] 0010 0001C1_OUT
[2] 0000 0010CLCIN2PPS[34] 0010 0010C2_OUT
[3] 0000 0011CLCIN3PPS[35] 0010 0011ZCD
[4] 0000 0100CLCIN4PPS[36] 0010 0100DSM1
[5] 0000 0101CLCIN5PPS[37] 0010 0101IOC
[6] 0000 0110CLCIN6PPS[38] 0010 0110HLVD (not IRQ)
[7] 0000 0111CLCIN7PPS[39] 0010 0111CLC1
[8] 0000 1000FOSC[40] 0010 1000CLC2
[9] 0000 1001HFINTOSC[41] 0010 1001CLC3
[10] 0000 1010LFINTOSC[42] 0010 1010CLC4
[11] 0000 1011MFINTOSC (500 kHz)[43] 0010 1011CLC5
[12] 0000 1100MFINTOSC (32 kHz)[44] 0010 1100CLC6
[13] 0000 1101SFINTOSC (1 MHz)[45] 0010 1101CLC7
[14] 0000 1110SOSC[46] 0010 1110CLC8
[15] 0000 1111EXTOSC[47] 0010 1111U1TX
[16] 0001 0000ADCRC[48] 0011 0000U2TX
[17] 0001 0001CLKR[49] 0011 0001SPI1SDO
[18] 0001 0010TMR0[50] 0011 0010SPI1SCK
[19] 0001 0011TMR1[51] 0011 0011SPI1SS
[20] 0001 0100TMR2[52] 0011 0100
[21] 0001 0101TMR3[53] 0011 0101
[22] 0001 0110TMR4[54] 0011 0110
[23] 0001 0111[55] 0011 0111I2C1SCL
[24] 0001 1000CCP1[56] 0011 1000I2C1SDA
[25] 0001 1001[57] 0011 1001
[26] 0001 1010PWM1S1P1_OUT[58] 0011 1010
[27] 0001 1011PWM1S1P2_OUT[59] 0011 1011CWG1A
[28] 0001 1100PWM2S1P1_OUT[60] 0011 1100CWG1B
[29] 0001 1101PWM2S1P2_OUT[61] 0011 1101TU16A
[30] 0001 1110[62] 0011 1110TU16B
[31] 0001 1111[63] 0011 1111IOCSR
[64] 0100 0000 - [127] 0111 1111