On a 5 volt system using PicKit2 debugger and PIC 16F690, PORTC,1 is not acknowledging an input signal from a light sensor. If I connect the light sensor to RA4, it works; however, when I connect the same sensor to RC1 with TRISC,1 set high, RC1 remains clear. If I connect RC1 directly to 5 volts, RC1 will set. My initialization code is below. Please tell me how to get RC1 to work with the light sensor.
;initialize PORTA
BCF STATUS,RP0 ;Bank 0
BCF STATUS,RP1 ;
CLRF PORTA ;Init PORTA
BSF STATUS,RP1 ;Bank 2
CLRF ANSEL ;digital I/O
BSF STATUS,RP0 ;Bank 1
BCF STATUS,RP1 ;
MOVLW 0x1C ;Set RA<4:2> as inputs
MOVWF TRISA ;and set RA<5,1:0> as outputs
BCF STATUS,RP0 ;Bank 0
;Initialize PORTC datasheet 66
BCF STATUS,RP1 ;
CLRF PORTC ;Init PORTC
BSF STATUS,RP1 ;Bank 2
CLRF ANSEL ;digital I/O
BSF STATUS,RP0 ;Bank 1
BCF STATUS,RP1 ;
MOVLW 0x2 ;Set RC<7:2,0> as output
MOVWF TRISC ;set RC<1> as input
BCF STATUS,RP0 ;Bank 0
;initialize PORTA
BCF STATUS,RP0 ;Bank 0
BCF STATUS,RP1 ;
CLRF PORTA ;Init PORTA
BSF STATUS,RP1 ;Bank 2
CLRF ANSEL ;digital I/O
BSF STATUS,RP0 ;Bank 1
BCF STATUS,RP1 ;
MOVLW 0x1C ;Set RA<4:2> as inputs
MOVWF TRISA ;and set RA<5,1:0> as outputs
BCF STATUS,RP0 ;Bank 0
;Initialize PORTC datasheet 66
BCF STATUS,RP1 ;
CLRF PORTC ;Init PORTC
BSF STATUS,RP1 ;Bank 2
CLRF ANSEL ;digital I/O
BSF STATUS,RP0 ;Bank 1
BCF STATUS,RP1 ;
MOVLW 0x2 ;Set RC<7:2,0> as output
MOVWF TRISC ;set RC<1> as input
BCF STATUS,RP0 ;Bank 0