The usual way to express ourselves on this forum is more like:
begin
RA5PPS := $b00100; (* CLC1OUT on RA5 *)
CLC1SEL0bits.LC1D1S := $b10011; (* CLC1 input 1 is SDO1 *)
CLC1SEL1bits.LC1D2S := $b10010; (* CLC1 input 2 is SCK1 *)
CLC1SEL2bits.LC1D3S := $b10000; (* CLC1 input 3 is PWM5OUT *)
CLC1GLS0 := $00;
CLC1GLS1 := $00;
CLC1GLS2 := $00;
CLC1GLS3 := $00; (* Gate behavior is undefined at power-on so must be set to zero *)
CLC1GLS0bits.LC1G1D1T := 1; (* SDO input to AND gate 1 *)
CLC1GLS1bits.LC1G2D2T := 1; (* SCK input to AND gate 1 *)
CLC1GLS2bits.LC1G3D1N := 1;
CLC1GLS2bits.LC1G3D2T := 1; (* nSDO && SCK input to AND gate 2 *)
CLC1GLS3bits.LC1G4D3T := 1; (* PWM5OUT input to AND gate 2 *)
CLC1POL := $00; (* Nothing is inverted *)
CLC1CONbits.LC1EN := 1; (* Enable CLC1 with AND-OR logic *)
end.
But it has a dependency on an external library, so even if......
Much more readable, don't you think?
I also can't find this one in the supported microcontroller types, but I may be wrong.
Note that IF it happens to be supported and IF you resolve the dependency my code would possibly work without change as long as CLC1GLS0bits is declared as a bitpacked record.
Note a PIC16F18325 is very cheap. Burn some trying...
(To help a little: You are close or even on the right track, but this is a Pascal forum)