Page 1 of 1

18F46K80 RC0/RC1 not working

Posted: Fri Sep 01, 2017 1:59 pm
by beanie
Hi guys,

I'm have problems using RC0 and RC1 as logic outputs on PIC18f46k20. I've had a look for what to disable to turn Timer 1 off or at least to internal but there is only a power option that I can find in the configuration menu, I have also turned off, T1OSCEN, TMR1CS,TMR3CS, CCP2CON, SCS1 and SCS0, TRISC is also set to 0.

Does anyone know how to get those pins to work as basic GPIO pins?

Cheers

Matt

Re: 18F46K80 RC0/RC1 not working

Posted: Thu Sep 07, 2017 2:27 pm
by LeighM
Hi Matt,
Can you give more details of the problems?
Such as, are you writing to a single port pin at a time?
Are the outputs changing at all, or just staying high, or low, or high impedance input, or changing when they shouldn't etc.
edit: just trying to check here if it's a port config issue, or a read-modify-write issue, or something else :?

edit: I wonder if it is anything to do with the secondary oscillator? might need to check over OSCCON and OSCCON2?