Quote Originally Posted by HenrikOlsson View Post
I already DID just that. The code in my previous message IS edited so it should work the way I think you want.
i tried to do as you told me but it didn't work as i want, led at portb.1 is always on even if the voltages at RA0 pin is changed. it seems the comparison is not working on the if statement, still have a problem.
thanx in advance