Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to reset PIC in Software?

Status
Not open for further replies.

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,457
pic16 mlcr

Hai

Which is the best method to reset a PIC from its own software?


Will a goto 00 clear the call stack?


picstudent
 

eng_ahmed22

Full Member level 4
Joined
Jun 7, 2005
Messages
190
Helped
20
Reputation
40
Reaction score
5
Trophy points
1,298
Activity points
2,916
Salam
i have small knowledg about the PIC. but i think u may use the WDT to reset the PIC.
just enable it when u want to reset the PIC after a while (depend on the value in the WDT).
hope that help u
Best Regards
Ahmed
 

    UroBoros

    points: 2
    Helpful Answer Positive Rating

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,457
Hai

My programe works in WDT disabled mode.


I doubt weather WDT can be enabled "on the fly"

Thanks

picstudent
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
If you plan to use GOTO 00 as software reset you will need to add in the beginning of the code set of SETs/RESETs to specified registers, otherwise jump to 00 will be executed like any other jump ..
( see data sheet of a particular PIC for the reset values of crucial registers) ..

Another option, however not used very often, is to connect one of I/O pins to the MLCR and execute reset that way ..

Regards,
IanP
 

    UroBoros

    points: 2
    Helpful Answer Positive Rating

NickE

Member level 1
Joined
Aug 14, 2005
Messages
36
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,502
PIC18 devices have RESET instruction.
On PIC16 there is no softreset, but it is possible to configure a peripheria (like WDT) to reset the chip.
 

    UroBoros

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top