I/O-pin RC0 stuck on PIC16F526

Oct 09, 2015 1 Replies

So PORTC is set for output by TRIS. Comparators are disabled in CM1CON0 and CM2CON0. Nevertheless this RC0/C2IN+ stucks high. Checked it on both a prototype board and a breadboard with two different PIC16F526s. Configuration word is set to __config B'111111110100'. Programmed by Pickit3. The five other PORTC-pins act as expected (just blinking a LED.) Anyone knows what can be wrong? petrus bitbyter


C2IN+ is enabled by default, Same for RC1. Does RC1 behave the same? Did you set C2PREF1 ?

Cheers

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required