Strange electrical behavior with PIC16F684


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Code please to detect PORTA.5 INT

    Quote Originally Posted by xnihilo View Post
    When I touch any pin, an int is triggered on portA.5 (RA5).

    WHY???
    Hi,

    Is your PORTA.5 changing all the time. Please note that the latch that holds the value for a mismatch is not cleared upon MCLR reset. Thus depending on your code there may be a condition where your PIC resets and you don't realize. (If you are manually polling values)

    Please post your complete code and schematic.
    Regards

    Sougata

  2. #2
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sougata View Post
    Hi,

    Is your PORTA.5 changing all the time. Please note that the latch that holds the value for a mismatch is not cleared upon MCLR reset. Thus depending on your code there may be a condition where your PIC resets and you don't realize. (If you are manually polling values)

    Please post your complete code and schematic.
    Okay, I will draw the schematics today.
    The code is huge (I fill all the 2048 words program space!!).

    PortA does not change all the time. It is set as output and set to LOW, there is no reason why it should change.
    When an interrupt occurs, the int handler takes care of reading porta to refresh the latch so there should be no mismatch.

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 10:47
  2. Strange pic 16f877a memory loss
    By DavyJones in forum General
    Replies: 23
    Last Post: - 6th July 2009, 21:27
  3. Electrical Current Does Prevent Corrosion?
    By T.Jackson in forum Off Topic
    Replies: 13
    Last Post: - 18th March 2008, 14:13
  4. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 15:19
  5. Strange ASM file
    By barkerben in forum General
    Replies: 2
    Last Post: - 29th November 2004, 19:54

Members who have read this thread : 0

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