What is the difference between MCLR and switching VDD OFF-ON?


Results 1 to 11 of 11

Threaded View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154

    Question What is the difference between MCLR and switching VDD OFF-ON?

    16F18877
    MeLabs U2 USB programmer
    Breadboard powered from wall adapter.


    I just spent an ungodly amount of hours tracking a problem, turned out MCLR was NOT making a "complete RESET". I had to power down the breadboard and turned it back on for programming to take effect completely.

    DAT and CLK only used by MeLabs programmer

    Standard MCLR circuit:
    - MCLR pin on PIC to 10K to VDD
    - MCLR pin on PIC to 100R to MCLR on MeLabs U2 USB programmer
    - MCLR pin on programmer to pushbutton to VSS

    Power:
    - 12V Wall adapter to rocker switch (VDD)
    - rocker switch to DC-DC converter
    - DC-DC converter to breadboard

    My CONFIG in case it's relevant:

    Code:
    #CONFIG
        __config _CONFIG1, _FEXTOSC_OFF & _RSTOSC_HFINT32 & _CLKOUTEN_OFF & _CSWEN_OFF & _FCMEN_ON
        __config _CONFIG2, _MCLRE_ON & _PWRTE_OFF & _LPBOREN_OFF & _BOREN_ON & _BORV_LO & _ZCD_OFF & _PPS1WAY_OFF & _STVREN_ON & _DEBUG_OFF
        __config _CONFIG3, _WDTCPS_WDTCPS_11 & _WDTE_OFF & _WDTCWS_WDTCWS_7 & _WDTCCS_LFINTOSC
        __config _CONFIG4, _WRT_OFF & _SCANE_available & _LVP_OFF
        __config _CONFIG5, _CP_OFF & _CPD_OFF
    #ENDCONFIG
    Last edited by Demon; - 21st October 2024 at 20:26.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Display Vdd
    By davesatu in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 14th February 2010, 08:34
  2. ICSP with differents vdd level..
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th February 2008, 02:29
  3. PIC sinking voltages higher that Vdd???
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 27th February 2007, 19:39
  4. Vcc Vdd etc
    By bearpawz in forum Off Topic
    Replies: 11
    Last Post: - 2nd April 2005, 21:49
  5. switching external vref+ and vdd vref
    By alejandro_halon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th February 2005, 20:13

Members who have read this thread : 10

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