Now that I look at the data sheet I see GPIO.4 is analog.
So add
Near the beginning of your code. That will make all pins digital.Code:ANSEL = 0
Other than that I do not see a problem.
How are your configs set and how is it wired?
Now that I look at the data sheet I see GPIO.4 is analog.
So add
Near the beginning of your code. That will make all pins digital.Code:ANSEL = 0
Other than that I do not see a problem.
How are your configs set and how is it wired?
Dave
Always wear safety glasses while programming.
Bookmarks