pin 12f683


Closed Thread
Results 1 to 23 of 23

Thread: pin 12f683

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    GPIO.0, 1, 2, 4 and 5 have pull-up enable/disable bits in WPU, but
    OPTION_REG.7 needs to be clear also.

    OPTION_REG.7 (GPPU) is the global pull-up enable/disable bit.

    OPTION_REG.7 = 0 ' GPIO pull-ups enabled by individual WPU bits
    TRISIO = %00000001 ' GPIO.0 = input, rest outputs (except for GPIO.3)
    WPU = %00000001 ' enable pull-up on GPIO.0, disable the rest.

    It's pretty straight forward. Look in your data sheet under OPTION_REG &
    WPU sections for details.
    Regards,

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

  2. #2


    Did you find this post helpful? Yes | No

    Default pull ups

    have set this up on a board which has a resistor 10 k to ground and a pb to vdd on gpi0.5. this is the way the board is set trying some programs but
    gpi0.5 stays high whenever pic is in socket i guess somehow i am not shutting off the pullups on this port have tried many many lines no changes to this
    any ideas whats up doc

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


    Did you find this post helpful? Yes | No

    Default

    Post the code you're having problems with. Hard to say without seeing that.
    Regards,

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

  4. #4


    Did you find this post helpful? Yes | No

    Cool highs and low

    got most things working now except
    cannot get changover from 1 to 0 on gpio.0
    its going high due to the pullup but when i ground does not respond

    might not be explaining this properly but can work on gpio.5

    where i have a resistor to gnd and a pb to 5 volts
    Attached Files Attached Files

  5. #5


    Did you find this post helpful? Yes | No

    Angry got to be crazy

    What Seems To Be Happening Is I Cannot Get Gpi0.0 To Change State Using The Pullup
    Dont Know If Its A Electrical Issue Or Not See Sample Program Above Just Grounding Pin 7 Momentarily
    But Prgram Does Not Respond Works On Gpi0.5 With A Res Pulled Low And A Pb To High
    Last edited by jcleaver; - 15th March 2007 at 14:36.

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


    Did you find this post helpful? Yes | No

    Default

    Which PIC are you actually using? Your code example above indicates a 12F675, but you asked about the 12F683?

    For the 12F675 you need CMCON = 7 to disable comparators.
    For the 12F683 you need CMCON0 = 7 to disable comparators.
    Last edited by Bruce; - 15th March 2007 at 15:56.
    Regards,

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

  7. #7


    Did you find this post helpful? Yes | No

    Wink pic

    bruce i tried both but the pic12f675 works with one of my programmers beter dont have to keep swaping out the pic so thats what i am trying now
    really does not mater after i get it working

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 14:55
  2. What's the best way to output 30 to 40 kHz from a 12F683 pin?
    By fizyxman in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st June 2009, 01:08
  3. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 06:07
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 18:07

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