Reset Button


Closed Thread
Results 1 to 5 of 5

Thread: Reset Button

  1. #1
    Join Date
    Sep 2008
    Posts
    43

    Thumbs up Reset Button

    Hi,
    I designed a program but there are some infinite loops.I have a button.I wanna the program will reset itself (I think pic will reset itself) and will go start point when I push this button.How can I do that?

  2. #2
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    No code !
    No Help .

  3. #3
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Maybe

    If you use external MCLR you can always connect a push button and a 100 ohm resistor to gnd. Close the button and MCLR is held low and the PIC will reset and when you release the button the PIC will start from the top of your program again.

    Do not pull MCLR directly to GND without a 100 ohm resistor or something similar because too big currents on this pin might cause latch up and then the PIC will stay off. This is mentioned in the datasheet for you PIC usually in the MCLR section.

    If you have an 18-series PIC you can just add a button in your normal code and then when it is pushed you do @RESET and then it will restart. But this way you need to make sure you can always scan the button from inside every loop. Using the PB on MCLR will allow you to reset the PIC even if the software has hung up on some unexpected event.
    Last edited by Jumper; - 28th February 2009 at 11:03.

  4. #4
    Join Date
    Sep 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    Can I not use MCLR pin


    Edit:I just said that thanks...

  5. #5
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    why you didn't use interrupts ?

Similar Threads

  1. Sony SIRC IR Issue
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2015, 08:10
  2. Help Pbasic to PBP
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd March 2009, 18:35
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  4. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  5. Button Push within 3 second Window
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd December 2005, 10:06

Members who have read this thread : 1

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