16F819 - Pullup on MCLR required?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default 16F819 - Pullup on MCLR required?

    Ive just started playing with a 16F819, and I notice that pin 4 is RA5/MCLR/VPP

    How can this pin be used for I/O, doesnt the MCLR need a 10k pullup resistor to +5v in order for the PIC to operate?

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    the pin has a internal pullup...

    Set your programming fuse to activate this, and you will not need a pull-up resistor.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    ok, so if its got an internal pull-up, wouldnt that still mean that if i pull the pin low, the pic would reset?

    if so, how can this pin be used for I/O ?

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


    Did you find this post helpful? Yes | No

    Default

    On PICs with the option of using /MCLR for an input, you enable or disable the reset function using the config word.

    If you're using the default PM assembler you can add config options to your code to over ride defaults in the device header file.

    @ device mclr_off, xt_osc, wdt_on, pwrt_on, lvp_off, protect_off

    Or you can just disable /MCLR with you programmer software before programming the part.
    Regards,

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

  5. #5
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    the MCLR is a pin that you can use to reset, or activate your chip.

    You have a fuse that you can use to make it pull high, so that you will not need to attach it to 5 V postive.

    If you do not activate this fuse, your chip will need this 5 volts positive to run properly. If you forget to activate this fuse and not attach the pin to 5 volts, your chip will run spuratically, will be unreliable, and will shut off on you unexpectedly. Sometimes just touching the chip will turn it on or off.

    Bruce gave you the programming fuse command for the chip. That will help you out.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. How to MCLR by code for 16F877
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th November 2014, 00:51
  2. 16F819 syntax ERROR
    By k-hirayama in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 00:40
  3. 16F688 Internal clock and MCLR
    By manxman in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2007, 18:38
  4. What does this MCLR instruction mean?
    By bartman in forum General
    Replies: 16
    Last Post: - 30th November 2004, 00:32
  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 : 2

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