12F683 internal pull up


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    If you have internal pull-ups ON, and you're testing the input pin for logic 1, the only
    way your LED shoud NOT blink would be when GPIO.5 is pulled to ground.

    That way it been erratic behavior and You are right about that the led should not blink when GPIO.5 is opened. that way when I opened the path from ground, the led still blinks. After I added INTCON=0 to it, it behaves much better and dont blink when opened. When I closed the GPIO.5 to ground, the led did blink.

    I dont know why but added INTCON=0, system stablizes. Like other PIC I know dont have issues with out this configuration. Maybe it a requirement?
    Last edited by hvacrtech; - 26th July 2008 at 20:26.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Clearing INTCON should not be necessary unless you had previously placed some value
    in it you need to clear. At power on INTCON by default is already clear.

    If it wasn't you could really have some odd behaviour with unexpected interrupts firing.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 15:58
  2. 16F688 Internal clock and MCLR
    By manxman in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2007, 19:38
  3. 16f677a to 12f683
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th July 2007, 07:16
  4. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 19:38
  5. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 23:41

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