Quote Originally Posted by dhouston View Post
I would expect more trouble with the Schmitt trigger which requires 0.8*Vdd or 4V for logic high.
i agree but found that the following works well with it.

IF porta.4 != 0 then <label>

Thnx for your help guys