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.

PIC12f683 Ext IRQ on non-IRQ pin

Status
Not open for further replies.

AlGeorge

New Member
Wanting to use MCLR as interrupt port change state - its set high. Prefer to use weak internal pull-up.
Tried this:
ioc.3=1; intcon.GPIE=1; //enable IOC bit for GP3, then GPIE
//in ISR checked for state when button pressed high to low thusly:
if (GPIE && intcon.GPIF)
//nosuch IRQ not being called
The logical port to use would be GP2/ext int port, unfortunately thats taken for something else.
If not possible on GP3 perhaps GP4/GP5 but have to turn off oscillator gates to stop internal oscillator and set the port high with weak pullup. Have had no joy there either. If anyone can point me to more information appreciated tks.
Alistair.
 
Last edited:
Hi Alistair,

There is no weak pull-up for GP3 when it's configured as I/O. You'll need to add an external pull-up.

Regards, Mike
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top