I/O-pin RC0 stuck on PIC16F526

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

Reply to
petrus bitbyter
Loading thread data ...

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

Cheers

Reply to
Martin Riddle

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.