16F690 MCLR as Input


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2022
    Posts
    75

    Default 16F690 MCLR as Input

    Hello everyone,

    a very basic question,

    I have a 16F690 with the RA3 MCLR configured as input, and the RA3 pin

    is connected to a 4k7 resistor pulldown and a switch tied to the VDD and it's working fine when the switch

    is open I detect a low and when the switch is close I detect a high.

    with the MCLRE bit #5 to = 0 the MCLR is tied to VDD

    (0 = RA3/MCLR/VPP pin function is digital input, MCLR internally tied to VDD)

    if the MCLR is tied to VDD, how come my pulldown + switch are working as it is.

    does the MCLR has already an internal pullup resistor

    if I remove the pulldown resistor with the switch open, the MCLR act as if it is high.

    it need the pulldown resistor to be a low.

    any suggestion ?

    Name:  MCLR.jpg
Views: 9
Size:  49.1 KB


    Also the internal EEPROM of the 16F690 is divided into 256 bytes location with address from 0 to 255
    if I write 0, word B, C, does it mean the address 0 and 1 will contain the word variable B and at address 2 will contain variable C (byte)

    Thanks for all comments.
    Last edited by jackberg1; Yesterday at 16:05.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,622


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: 16F690 MCLR as Input

    if the MCLR is tied to VDD, how come my pulldown + switch are working as it is.
    Because when you configure RA3 to act as a normal input the MCLR signal is disconnected from the pin and instead connected to Vdd internally. In other words, it's not the PIN that's connected to Vdd but the MCLR-signal. Does that make sense?

    if I write 0, word B, C, does it mean the address 0 and 1 will contain the word variable B and at address 2 will contain variable C (byte)
    Yes.

    /Henrik.

  3. #3
    Join Date
    Feb 2022
    Posts
    75


    Did you find this post helpful? Yes | No

    Default Re: 16F690 MCLR as Input

    many thanks Henrik to clarify this post.

    that make more sense to me now with further test, when the pin RA3
    has nothing connected to it, the input is floating thus
    when adding a pulldown it's state is stable.


    I found from the datasheet a diagram of the MCLR input circuit, my guess is the red line indicate the path of the input configuration.


    Name:  MCLR1.jpg
Views: 4
Size:  59.5 KB
    Last edited by jackberg1; Yesterday at 21:05.

Similar Threads

  1. Using MCLR pin at Input
    By JakeMend in forum mel PIC BASIC
    Replies: 9
    Last Post: - 6th July 2017, 23:39
  2. ICSP with MCLR as input
    By Luckyborg in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th June 2013, 17:40
  3. Q: using MCLR for Input on 12F683
    By picster in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 31st January 2009, 16:25
  4. MCLR line input only
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th April 2008, 00:14
  5. Mclr As Input Pin?
    By omid_juve in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th December 2007, 07:33

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