It does say that, doesn't it?
Well, it's not entirely correct.
It would be more efficient than the first example in the manual INPUT 0, because it has to figure out what pin 0 refers to.
But there is no difference at all between INPUT PORTB.5 and TRISB.5 = 1. They both generate the exact same code.
That should be OK too.I figured not using anything might be even more efficient so I just removed the last line altogether and the reading is still good.
So do you think leaving it out is ok or is there a chance it might create issues?
The following OW commands will control the TRIS bit and leave it in INPUT mode when it's finished.
Bookmarks