PIC12f683 Ext IRQ on non-IRQ pin

Discussion in 'Embedded Systems and Microcontrollers' started by AlGeorge, Dec 10, 2009.

  1. AlGeorge

    Thread Starter New Member

    Nov 16, 2009
    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.
    Last edited: Dec 10, 2009
  2. MMcLaren

    Well-Known Member

    Feb 14, 2010

    I realize this is an old post but I was curious if you figured out that there is no internal weak pull-up on GP3 when it's configured as an input?

    Kind regards, Mike