NoThis looks and sounds like a homework assignment.
MCLR=Master Clear pin External Reset.Hi All,,
what is the difference between the following connections for MCLR PIN of PIC MCU ?
View attachment 139042
why we dont connect The MCLR directly to VDD?
what is the purpose of R,R1,C and D ?
Regards
The #3 drawing is for in-circuit serial programming and should include a switch to isolate (disconnect) the capacitor when programming and connect when the circuit is in use in an electrically noisy circuit (especially with inductive loads. The capacitor will insure the device does not reset unintentionally.
The Device will not program if the capacitor is there. Or, it will program if Vpp is connected directly to/MCLR and R1 is at least 10k.
It looks like the Microchip drawing is wrong.View attachment 139057
The top diagram is from Microchip. Is the diode positioned correctly in the TS's? I initially thought that circuit was from an ICSP application, and maybe I am just looking at it wrong but it did not seem right. Explain please?
That is true but the diode also prevents the reset circuit from driving the MCLR pin low.I believe Vpp is high voltage (12, iirc). The diode is to prevent it from flowing on to the power rail.