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.

using mclr as an output!

Status
Not open for further replies.

justDIY

Active Member
found this neat article on EDN detailing a trick to use the mclr pin, normally an input only pin, as a digital output.

the trick relies on setting the weak pullup feature inside the pic, using that extremely small current to switch an external mosfet which then controls an external load

**broken link removed**
 
Wow.. this is brilliant. I didn't think of making this pin as output since the datasheet states that this pin can only be input. But this won't work for bigger PIC right? As the MCLR is usually not on PORTB and the weak pullup is on PORTB.

Thanks for sharing.
 
I have used this "function" in the past and actually posted about it 18 months ago in this thread. Unfortunately, most of the new pics don't have the pullup on Mclr.

Mike.
 
Nigel Goodwin said:
Yes, it's a very old 'trick', but only really of limited use.
Really, I'd never come across this before I posted it. Maybe you could supply a link.

Mike.
 
Pommie said:
Really, I'd never come across this before I posted it. Maybe you could supply a link.

Search the PICList archives, I seem to recall it was mentioned there ages ago.

EDIT: By the way, I wasn't suggesting you hadn't individually 'discovered it'.
 
Last edited:
Nigel,

I would be really impressed if you could supply a link. Can I just ask why, if this is an old trick, did you question the value of the pullups in this thread. If you knew this trick then you would have not questioned their value. Maybe you are thinking of this older thread where I also explain how this can be done.

Mike.
 
justDIY said:
i guess it's really only of interest on the 6 and 8 pin devices, when you're in a pinch and just need one more output.

The only device I have come across where it works is the 12F509. All the later devices don't have the pullup on MCLR.

Mike.
 
Pommie said:
Nigel,

I would be really impressed if you could supply a link. Can I just ask why, if this is an old trick, did you question the value of the pullups in this thread. If you knew this trick then you would have not questioned their value. Maybe you are thinking of this older thread where I also explain how this can be done.

Perhaps I'm imagining things?, but I've got this thought at the back of my mind that it was on the PICList long ago? - I subscribed to the PICList for a number of years, and read all the posts as they were made - many of which were completely over my head, but lot's of others prompted ideas.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top