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
18F46K80 RC0/RC1 not working
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: 18F46K80 RC0/RC1 not working
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?
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?