Hot!MCLR' in dsPIC33E vs PIC18F

Author
naeem1234
Super Member
  • Total Posts : 450
  • Reward points : 0
  • Joined: 2015/02/19 06:39:28
  • Location: 0
  • Status: offline
2018/11/03 05:29:36 (permalink)
0

MCLR' in dsPIC33E vs PIC18F

Hello everyone
 
As i read the dsPIC33E datasheet it says that MCLR' pin has 2 functions.. Device Reset and Device Programing.
If i want to dedicate it for Device ICSP Programing then can i do Device Master Reset using internal delay timers as it is possible in PIC18F MCUs if I remember correctly?
 
Your help is highly appreciated.
#1

15 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17154
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 06:04:16 (permalink)
    0
    You can reset it via its watchdog, or its software reset command.
    Note the pin has both functions simultaneously. For programming it uses a higher voltage.
    #2
    NorthGuy
    Super Member
    • Total Posts : 5310
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 06:29:18 (permalink)
    0
    You can have both the reset button and programmer connection to MCLR. The schematic is in the datasheet.
     
    Often you only need a reset when software goes haywire, so using software for reset is not a good idea.
    #3
    MBedder
    Circuit breaker
    • Total Posts : 6714
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 07:53:04 (permalink)
    0
    NKurzmanFor programming it uses a higher voltage.
    Since when??


    #4
    naeem1234
    Super Member
    • Total Posts : 450
    • Reward points : 0
    • Joined: 2015/02/19 06:39:28
    • Location: 0
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 07:57:29 (permalink)
    0
    NorthGuy
    You can have both the reset button and programmer connection to MCLR. The schematic is in the datasheet.
     

     
    Section 2.4 Master Clear (MCLR) Pin
    Page 30  says
    "
    For example, as shown in Figure 2-2, it is recommended
    that the capacitor, C, be isolated from the MCLR pin
    during programming and debugging operations.
    "
    and Figure 2.2 EXAMPLE OF MCLR PIN CONNECTIONS, shows a jumper in series with the Capacitor.
     
    I want to avoid this jumper and Capacitor by not using the MCLR' for POR .. and dedicate this pin for ICSP.
    For POR i want to use some other mechanism if that is possible.. Please suggest.
     
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17154
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 08:18:13 (permalink)
    0
    MBedder
    NKurzmanFor programming it uses a higher voltage.
    Since when??



    the dsPIC33E does not put 8V Vpp on MCLR for programming?
    #6
    MBedder
    Circuit breaker
    • Total Posts : 6714
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 08:34:20 (permalink)
    0
    No, it rather puts 220VAC - did you know that, didn't you?
    #7
    NKurzman
    A Guy on the Net
    • Total Posts : 17154
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 09:02:09 (permalink)
    0
    MBedder
    No, it rather puts 220VAC - did you know that, didn't you?


    If you are going to be Snarky you could answer the Question.
    which it appears that for dsPIC33EPXXXGM3XX/6XX/7XX it is only Low Voltage programming.
    Making me wrong. I would thank you for the correction, But then you didn't.
    #8
    NorthGuy
    Super Member
    • Total Posts : 5310
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 09:05:10 (permalink)
    5 (1)
    naeem1234
    I want to avoid this jumper and Capacitor by not using the MCLR' for POR .. and dedicate this pin for ICSP.



    You don't need a jumper. A resistor will do.
     
    You need to pull up MCLR anyway, or the PIC will reset whether you "use" the MCLR pin for reset or not.
    #9
    jtemples
    Super Member
    • Total Posts : 11100
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 10:28:57 (permalink)
    0
    ...and not all PIC18s use high-voltage programming, e.g., 18FJ doesn't.
    #10
    NKurzman
    A Guy on the Net
    • Total Posts : 17154
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 11:47:49 (permalink)
    0
    Interesting. I see there were changes under the hood that I did not notice.
    #11
    Antipodean
    Super Member
    • Total Posts : 1700
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 12:26:31 (permalink)
    0
    NKurzman
    Interesting. I see there were changes under the hood that I did not notice.



    This is why the new programmers like the SNAP don't have HV programming. Things have moved on.
     
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #12
    qhb
    Superb Member
    • Total Posts : 9673
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 18:35:01 (permalink)
    0
    Neil, I think you tried to quote Anti-podean's post, ignoring the message in his signature...
     
    #13
    NKurzman
    A Guy on the Net
    • Total Posts : 17154
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 18:41:10 (permalink)
    0
    qhb
    Neil, I think you tried to quote Anti-podean's post, ignoring the message in his signature...



    That or I answered it on my phone.
    either way not my finest posting today.  Can you give yourself a thumbs down?
    #14
    qhb
    Superb Member
    • Total Posts : 9673
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: MCLR' in dsPIC33E vs PIC18F 2018/11/03 23:43:45 (permalink)
    0
    It's disappeared down the rabbit hole, so no-one but you will ever know anyway. ;)
    #15
    Jump to:
    © 2019 APG vNext Commercial Version 4.5