Hi peterdoco1 and Sayzer,
Peterdoco1, I first tried your solution and it worked! And that is:
trisa = %00000001
adcon1 = %00000111
Sayzer, I then looked at and tried your solution and it worked! Your solution was to look at the register table for adcon1 and find the the values for that which I wished to do which is: ra0 = analog and ra1-5 as digital. This gave me a value of:
trisa = %00000001
adcon1 = %00001110
Is that what you would have used?
I did have one small problem getting ra4 led to turn on until I remembered that ra4 is open drain.
dallennn
Bookmarks