I/O pin and MCLR


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511

    Default I/O pin and MCLR

    Hello folks...

    One of the things that I get caught on every once in a while, MCLR being set to Reset.


    If you look in the Chips instrution set, you can read whether a port is for I/O, PWM, AD, MCLR, or another purpose. You must tell it whether it is a digital or analog port. If you assign that port something that it is not, don't expect it to work!...
    For example, the 12f675 has GPIO.3 is a INPUT pin, as well as a MCLR pin. Do not attempt to use GPIO.3 as a output pin.

    When you program your chip, make sure you program your MCLR as a INPUT pin, not a RESET.

    If you program the MCLR as a Input pin, your chip will power up by itself. If you program the MCLR as a RESET, you must use a resister and put some voltage to that MCLR pin to activate your chip.

    As they say... A chip with no Spark, Looks pretty Dark.

    Do not get caught in the trap of NOT checking to see if the pin is defaulted to INPUT on your programmer.
    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...

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


    Did you find this post helpful? Yes | No

    Default

    See also thread – Pin RA4 doesn't work and the section within that thread Why doesn't the POT Command and RCTIME Command work?. Those commands will NOT WORK PROPERLY on INPUT ONLY pins (such as the MCLR pin, which, where permitted to be used for I/O, tends to appear as INPUT ONLY). As always check with your PICs Datasheet.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. MCLR as PIN on 12F675
    By rgregor in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th October 2009, 09:46
  3. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  4. Question on using MCLR pin for interupt. (PIC12F683)
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th February 2009, 02:15
  5. 16F628A and RA5 (MCLR pin)
    By peu in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th July 2006, 02:05

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