Pic MCLR

Discussion in 'General Electronics Chat' started by yuanshikai, Nov 6, 2011.

  1. yuanshikai

    Thread Starter Member

    Sep 17, 2011
    49
    0
    Can anyone teach me all there is to the MCLR pin. I'm using the Pic16f877a chip. I want to know what the concept of reset means. Does it erase the program in the pic or just the ram? If just the ram, doesn't it delete itself if the device is turned off. And i would also like to know the recommended connections for this pin. Thanks in advance.
     
  2. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    Hi.

    I guess this, says it all.

    Don't forget to read the datasheet, found here. When you fiddle with an MCU, it's always handy to have the datasheet nearby.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    In your data sheet read about the reset in section 14.4 MCLR. The MCLR reset will not affect the program memory or the Data EEPROM. The data sheet will tell you the reset status for all the Special Function Registers (registers like PORTA,TRISB and so on). The
     
  4. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    Beware the /mclr is also a programming mode input at 13v5 so dont allow glitches on this pin or it will enter programming mode.
     
Loading...