Rule #1: Always check the pinout.
What's on PORTB.5?
Yeah right AN13... Now check the datasheet page 155 (ADCON1 register) to see how to disable the ADC on this pin.
Rule #1: Always check the pinout.
What's on PORTB.5?
Yeah right AN13... Now check the datasheet page 155 (ADCON1 register) to see how to disable the ADC on this pin.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve,
Thank you for the prompt reply.
I've been looking through the datasheet in the A/D section, but it's quite over my head! I have done some searches and see that setting the ADCON1 to %00000001 for instance would set AN0 to A/D. But see not reference to AN13 (portb.5) in the table...
Another clue ... please?!
ADCON1 = 15 ' All I/O pins digital
Dave
Always wear safety glasses while programming.
Thanks!
Phew - that wasn't fun...
It is possible to set them individually?
Thank you both very much - you have just completed the spectrum for me!
Yes, goto the table Steve mentioned and take a look.
1111 = 15
![]()
Dave
Always wear safety glasses while programming.
Ahhh... Sorry guys - I was looking at Page 155 (as per page number at bottom) and beyond - not Page 155 of the PDF! So I started (struggling) to read through missing the two pages before!
....This table looks much more understandable than Table 12-2 which I eventually go to on page 160 (162 of pdf)
Thanks again.
Bookmarks