Question on using MCLR pin for interupt. (PIC12F683)


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    46

    Default Question on using MCLR pin for interupt. (PIC12F683)

    Hello,
    If I use the MCLR pin instead of GP2 for an interrupt to wake from sleep, is there a way to detect the interrupt just on that pin (like you can on GP2) rather than enabling interrupts on the whole GPIO port? On another project, when doing something like this, after the interrupt, then I checked to see if the specific pin was low. Is that the only way to do it?
    Gary

  2. #2
    Join Date
    Jan 2009
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    If the MCLR pin is brought low a reset will occur, waking the PIC from sleep and starting your code from the beginning. No interrupts needed, although you code may want to distinguish between an initial power-up and a MCLR reset, depending on your application.

  3. #3
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Can't this be set on a pin-by-pin basis using the IOC register and setting the GIE bit in the INTCON register?
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  4. Question on assigning pin port to variable
    By khufumen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st June 2005, 22:25
  5. I/O pin and MCLR
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 1
    Last Post: - 15th July 2004, 10:52

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts