Page 1 of 1

18f46K22 ADC Funnies

Posted: Thu Nov 14, 2019 6:10 pm
by anzacinexile
Apologies if this has been asked before (I have tried searching!!!) but FC7 only shows ADC's 0 to 13 being available with a 18F46K22. I'm trying to access AN26 (pin 4 with a 44pin device) but I cant figure it out.
Any help would be most welcome

Re: 18f46K22 ADC Funnies

Posted: Fri Nov 15, 2019 11:11 am
by Benj
Hello,

Have you applied the latest updates available from here.
viewtopic.php?f=63&t=19743

Re: 18f46K22 ADC Funnies

Posted: Fri Nov 15, 2019 12:58 pm
by anzacinexile
Absolutely brilliant Benj, that fixed it.
Another unrelated question only asking so I can expand my knowledge. I noticed that I had a solder bridge between AN4 (pin 24) and RA4 (pin 23) but it didn't seem to upset the operation of the ADC. I'm guessing that an undefined pin goes tri-state (high impedance) so it wouldn't have any effect but if this is the case, if I hadn't spotted the bridge, would it made any difference to the long term operation of the PIC?

Re: 18f46K22 ADC Funnies

Posted: Fri Nov 15, 2019 1:35 pm
by Benj
Hello,

Excellent, thanks for letting us know.

Yes all unused pins will default to a tri-state floating input mode and so a short shouldn't cause any long term damage.

What would maybe cause damage is if you had an output pin driving high shorted to an output pin driving low as this would cause an excess of current to flow..

Re: 18f46K22 ADC Funnies

Posted: Fri Nov 15, 2019 1:47 pm
by anzacinexile
Fantastic Benj, many thanks for excellent support for an excellent product.