Searching \ for '[PIC]: software reset' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'software reset'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: software reset'
2001\06\20@051754 by Vasile Surducan

flavicon
face
Hello !
I need to do a software reset into 877 ( the effect must be the same like
pushing MCLR to low ) without any external hardware.
I know sometime this is happening by mistake, but can be done
reproducible?
thanks,
Vasile

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu


2001\06\20@052416 by Quentin

flavicon
face
GOTO    0

Quentin


Vasile Surducan wrote:
>
> Hello !
> I need to do a software reset into 877 ( the effect must be the same like
> pushing MCLR to low ) without any external hardware.
> I know sometime this is happening by mistake, but can be done
> reproducible?
> thanks,
> Vasile

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2001\06\20@053712 by Vasile Surducan

flavicon
face
sorry, but this will not set all register like MCLR does...

On Wed, 20 Jun 2001, Quentin wrote:

{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu


2001\06\20@054738 by Quentin

flavicon
face
Vasile Surducan wrote:
>
> sorry, but this will not set all register like MCLR does...
>
You do that in your initialization code.

Quentin

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu


2001\06\20@055154 by Graham Harrison

flavicon
picon face
I put the code into a loop without refreshing the watchdog. It is slow but
it works.

Graham
----- Original Message -----
From: Vasile Surducan <vasilespamspam_OUTL30.ITIM-CJ.RO>
To: <@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
Sent: Wednesday, June 20, 2001 9:33 AM
Subject: Re: [PIC]: software reset


{Quote hidden}

like
{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


2001\06\20@083330 by Bob Ammerman

picon face
The results won't be exactly like a  hardware reset, but just let the
watchdog bite:

   goto $

Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)


{Original Message removed}

2001\06\20@083542 by Bob Ammerman

picon face
I am pretty sure that letting the watchdog expire is the closest you are
going to get to a MCLR type reset in software.

Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)

{Original Message removed}

2001\06\20@151427 by Barry Gershenfeld

picon face
Tie an I/O line to MCLR and literally reset yourself?

>I need to do a software reset into 877 ( the effect must be the same like
>pushing MCLR to low ) without any external hardware.
>I know sometime this is happening by mistake, but can be done
>reproducible?
>thanks,
>Vasile

--
http://www.piclist.com hint: To leave the PICList
TakeThisOuTpiclist-unsubscribe-requestEraseMEspamspam_OUTmitvma.mit.edu


2001\06\20@162619 by Bob

flavicon
face
This is the same thing I was thinking, and was about to suggest.

Just tie in another I/O line (setup as a high impedance input, which is the
default on most PICs) directly to MCLR and set it as a low output when you want
to physically reset the uP.  The only other hardware you "might" need is a
resistor between that I/O pin and MCLR, but I don't think that'd be necessary.



{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestEraseMEspam.....mitvma.mit.edu


2001\06\21@012559 by Vasile Surducan

flavicon
face
OK, but one wire == hardware !

On Wed, 20 Jun 2001, Barry Gershenfeld wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\06\22@015108 by Aleksey Musin

flavicon
face
Hello, Vasile,

Wednesday, June 20, 2001, 2:14:16 PM, you wrote:

VS> I need to do a software reset into 877 ( the effect must be the same like
VS> pushing MCLR to low ) without any external hardware.
VS> I know sometime this is happening by mistake, but can be done
VS> reproducible?

I dont't know a PIC, but in Atmel AVR:
"External Interrupts.
The external interrupts are triggered by the INT1 and INT0 pins.
Observe that, if enabled, the interrupts will trigger even if
the INT0/INT1 pins are configured as outputs.
This feature provides a way of generating a software interrupt."

Try this.

One question only.
Why do you need the software interrupt?
I can't see a task, in which it's necessary.

--
Best regards,
Aleksey Musin

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\22@015420 by Aleksey Musin

flavicon
face
Hello, Vasile,

Wednesday, June 20, 2001, 2:14:16 PM, you wrote:

VS> I need to do a software reset into 877 ( the effect must be the same like

Sorry, i wrote about a software interrupt :)

Your problem is very easy. 877 has a Watchdog timer, just don't clear him!

// pseudo-code for C
enable_wdt();
for(;;); // reset

--
Best regards,
Alexey Musin

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\22@023010 by Vasile Surducan

flavicon
face
On Fri, 22 Jun 2001, Aleksey Musin wrote:

> One question only.
> Why do you need the software interrupt?
> I can't see a task, in which it's necessary.

 I'm working to an autobaud serial routine without software measurement
of time receiving character. It seems it's works ok, but I need this
software reset until the slave is connected at desired baudrate ( from 110
to 115200 baud or more )
Don't forget also, I'm hardware engineer and I don'y know ( yet ) all
pic software tricks.
Thanks, Vasile

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\22@091549 by Byron A Jeff

face picon face
On Thu, Jun 21, 2001 at 07:22:54AM +0300, Vasile Surducan wrote:
> OK, but one wire == hardware !

What you ask cannot be done. There is no software sequence that will exactly
simulate an MCLR. Even the watchdog reset has a different behavior in terms
of register resets. The only way to get the effect of pulling MCLR low is to
actually pull it low. That will require at minimum 1 I/O pin.

That being said, the closest you'll get is either letting the watchdog reset
occur, or jumping to the reset vector. Also you can help yourself by checking
the reset status bits, and setting the appropriate registers based on those
bits.

BAJ
{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\22@095705 by Olin Lathrop

face picon face
>   I'm working to an autobaud serial routine without software measurement
> of time receiving character. It seems it's works ok, but I need this
> software reset until the slave is connected at desired baudrate ( from 110
> to 115200 baud or more )

I don't understand why this requires a software reset.


********************************************************************
Olin Lathrop, embedded systems consultant in Littleton Massachusetts
(978) 742-9014, RemoveMEolinspam_OUTspamKILLspamembedinc.com, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\22@153837 by Mike Mansheim

flavicon
face
from Byron:
> But of course this beg the obvious question: Why not simply jump to to
the
> reset vector? Any robust code will actually set any register values the
> applications needs instead of depending on the reset to do so?

from Olin:
> Why not just
>
>     clrf  pclath
>     goto  0

> This will essentially BE instantaneous.

I've probably should have mentioned that the application was written in C.
Letting the watchdog time out was a reliable, low instruction count way
to restart and stay in C.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\25@035510 by Vasile Surducan

flavicon
face
Ok, thanks !
Vasile

On Fri, 22 Jun 2001, Byron A Jeff wrote:

{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspamspamspamBeGonemitvma.mit.edu


2001\06\25@050311 by Morgan Olsson

picon face
Forceing a watchdog reset immediately:
204.210.50.240/techref/microchip/hrdrstsw.htm
Regards
/Morgan

Bob Ammerman wrote:
{Quote hidden}

>{Original Message removed}

2001\06\25@053251 by Vasile Surducan

flavicon
face
This is really interesting !
Thank you very much !
Vasile

On Mon, 25 Jun 2001, Morgan Olsson wrote:

{Quote hidden}

> >{Original Message removed}

2001\06\30@070927 by Kashif Ali

flavicon
face
part 1 315 bytes content-type:text/plain; charset=us-ascii (decoded 7bit)
Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit What is difference of external reset between 16f84 and 16f874 uC. Because I'm using same external hardware reset for both but 16f874 not resetting properly. [Image] Kashif ali
part 2 8307 bytes content-type:multipart/related; boundary="------------D9AF99B5CB19F9B01099BB56" (decode)

part 3 115 bytes
- -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu

More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...