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 Weak pullups can be really weak

    Hi,

    Try using a pullup 2.7K resistor on the PIN.

    While touching the pin you may induce quite a few volts(k) so perhaps it is not a good practice. PICs are sensitive to esd which may kill them.
    Regards

    Sougata

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    No pull-up or WPU... the i/o is set as an output and set to low and AN INT happen???? huh???? I must miss something here!

    Maybe i'm blind... but i don't see any cod in here... so i would assume the TRIS register haven't been changed. Try LOW PORTA.5 instead.. if this work.. it just mean you didn't at least changed TRISA setting....or the INT don't care about the TRIS... i'll check the datasheet...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    No pull-up or WPU... the i/o is set as an output and set to low and AN INT happen???? huh???? I must miss something here!
    Yes an int happens... No clue why it happens.

    Maybe i'm blind... but i don't see any cod in here... so i would assume the TRIS register haven't been changed. Try LOW PORTA.5 instead.. if this work.. it just mean you didn't at least changed TRISA setting....or the INT don't care about the TRIS... i'll check the datasheet...
    I didn't put any code here but beleive me,

    TRIS is set as 0 (output) for RA5 and I used PORTA.5 = 0 to be sure it has been set LOW.

    I beleive the pin should be low and an int should be triggered when I apply +5V on the pin to set it logicaly HIGH but that's not what's happening.
    And an int happens for this pin even in I touch another pin or even the GND heatsink of the L7805 voltage regulator or +5V or GND...

    I checked the connexions on the breadboard and everything looks fine...
    Very frustrating.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    obviously, there's something else... great news i have over 500 of those in stock

    i'll try a simple snippet and see what happen. I would guess the interrupt will happen 'cause it's feeded in a X way inside. Probably you will need to disable the interrupt as well...

    let's see what will happen on my side in a few minutes.. gimme 1/2 hour + couple of RedBull+Amaretto (even if i shouldn't... don't tell to my doctor )... or so.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    unable to reproduce the problem here...

    post your code.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    unable to reproduce the problem here...

    post your code.
    You don't have exactly the same components and connexion

    How can I discover the source of the problem... I will have to rebuild a clone of the system but this time not on a breadboard.

  7. #7
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by mister_e View Post
    obviously, there's something else... great news i have over 500 of those in stock

    i'll try a simple snippet and see what happen. I would guess the interrupt will happen 'cause it's feeded in a X way inside. Probably you will need to disable the interrupt as well...

    let's see what will happen on my side in a few minutes.. gimme 1/2 hour + couple of RedBull+Amaretto (even if i shouldn't... don't tell to my doctor or so.
    Redbull + Amareto... Thats GEEK stuff

  8. #8
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sougata View Post
    Hi,

    Try using a pullup 2.7K resistor on the PIN.

    While touching the pin you may induce quite a few volts(k) so perhaps it is not a good practice. PICs are sensitive to esd which may kill them.
    I can't use a WPU because I want this pin LOW by default.

    Huh... Yes, I know about ESD, I should be more careful. Anyway PICs are pretty tough.

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, 09:47
  2. Strange pic 16f877a memory loss
    By DavyJones in forum General
    Replies: 23
    Last Post: - 6th July 2009, 20:27
  3. Electrical Current Does Prevent Corrosion?
    By T.Jackson in forum Off Topic
    Replies: 13
    Last Post: - 18th March 2008, 13: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, 14:19
  5. Strange ASM file
    By barkerben in forum General
    Replies: 2
    Last Post: - 29th November 2004, 18: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