Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC WPU and Comparator module

Status
Not open for further replies.

navarretemarce

New Member
Anybody knows if the internal weak pull-ups can be enabled and work if the pins are asignated to the VIN of the embebed comparator module?
(I am using the PIC 12F629)
I know it is analogic imput, but anyway if they could be used I could spare external components.

Thanks a lot.
 
I'm not knowledgeable about the inner workings of PIC's but even if you can't use that pin's pullup you could use the pullup from a neighboring pin instead, but all this is going to do is save you one resistor from the voltage divider network. Is it really worth it?
 
Thanks, for your answer. Unofrtunatly I dont have a PIC to test it my self. And the information provided about the comparators in the datasheet is really poor.
One resistor is one resistor :D
 
You can't universally charactorize the pullups of a PIC though, look at the data sheets, there's a wide range. So you'd need to take that into acount.
 
Thanks for the answers.
In the case of the PICs I am working with: 12F629, 16F628, the internal weak pull-ups are 4K7.
Unfortunatly this p-ups are only asignables to Digital ports and not to the analog comparators.
 
nava, you can set an unused I/O line to be a pullup and externally wire it to your analog comparator.
 
Is there a need to use the internal pullup at all?, as the comparator has the internal Vref that can be set by software. Check the data sheet for any of the eight different comparator modes that can used. Enable and set the VRCON register to Vdd, if that's what you want, and you should be good.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top