Hi Klaus,
welcome on the forum. The beauty of the compiler is that you can access each and every PIC register to do what YOU want to do. Here, it's not a compiler built-in feature you need, it's a specific PIC feature you need to enable/disable.
Let's see the datasheet (yeah you must make friend with it... even if this one is pretty big) i heard the size don't matter 
http://ww1.microchip.com/downloads/e...Doc/39632D.pdf
PDF page 69 , table 5-2, find INTCON2 register and look bit 7 RBPU..ok ok.. i agree for now it doesn't mean anything...
Go at page 102, There you find the whole explanation for this INTCON2 register and RPBU bit.
As you see, to enable the internal pull-up, you just need to 'clear' bit 7 of this register. How to? Easy..
That's it that's all
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks