18f46K22 ADC Funnies

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
anzacinexile
Posts: 55
Joined: Tue Apr 01, 2014 9:10 am
Has thanked: 16 times
Been thanked: 18 times
Contact:

18f46K22 ADC Funnies

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 18f46K22 ADC Funnies

Post by Benj »

Hello,

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

anzacinexile
Posts: 55
Joined: Tue Apr 01, 2014 9:10 am
Has thanked: 16 times
Been thanked: 18 times
Contact:

Re: 18f46K22 ADC Funnies

Post 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?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 18f46K22 ADC Funnies

Post 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..

anzacinexile
Posts: 55
Joined: Tue Apr 01, 2014 9:10 am
Has thanked: 16 times
Been thanked: 18 times
Contact:

Re: 18f46K22 ADC Funnies

Post by anzacinexile »

Fantastic Benj, many thanks for excellent support for an excellent product.

Post Reply