From: sharathselvam on
Can anyone tell how to design a reset circuit for microcontroller that can
change the default values? example:
REGISTER DEFAULT VALUES
program counter 0x43
stack pointer 0x0f
accumultor 0x00
flag register 0x80



---------------------------------------
Posted through http://www.EmbeddedRelated.com
From: Stefan Brröring on
sharathselvam schrieb:
> Can anyone tell how to design a reset circuit for microcontroller that can
> change the default values? example:
> REGISTER DEFAULT VALUES
> program counter 0x43
> stack pointer 0x0f
> accumultor 0x00
> flag register 0x80
>
>
>
> ---------------------------------------
> Posted through http://www.EmbeddedRelated.com

I don?t realy understand your question.

Normaly, when a reset occurs, the processor starts or restarts at a
predifined position. There, you start an initialization routine, where
you initialize the registers as you want them after reset.

Or do you want to reinitialize this registers when an event, e.g. an
electrical signal occurs at a processor pin?

In this case, you could use an interrupt-pin and reinitialize your
registers in the interrupt service routine for this signal without a
real processor reset.

The 'real' reset curcuit depends on the processor. You will find
examples in the documetation of the processor. Often, it is a resistor
an a capacitor.

Best regards

Stefan DF9BI
From: Cesar Rabak on
Stefan Brr�ring escreveu:
> sharathselvam schrieb:
>> Can anyone tell how to design a reset circuit for microcontroller that
>> can
>> change the default values? example:
>> REGISTER DEFAULT VALUES
>> program counter 0x43
>> stack pointer 0x0f
>> accumultor 0x00
>> flag register 0x80
>>
>>
>> ---------------------------------------
>> Posted through http://www.EmbeddedRelated.com
>
> I don?t realy understand your question.

Perhaps because he compacted too much the homework assignment?

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
From: Jim Stewart on
sharathselvam wrote:
> Can anyone tell how to design a reset circuit for microcontroller that can
> change the default values? example:
> REGISTER DEFAULT VALUES
> program counter 0x43
> stack pointer 0x0f
> accumultor 0x00
> flag register 0x80

No.
From: D Yuniskis on
sharathselvam wrote:
> Can anyone tell how to design a reset circuit for microcontroller that can
> change the default values? example:
> REGISTER DEFAULT VALUES
> program counter 0x43
> stack pointer 0x0f
> accumultor 0x00
> flag register 0x80

Yes. Contact the vendor and have him produce a custom mask for you.

At the same time, feel free to suggest alternate *colors* to replace
the boring black plastic that encapsulates your part so you will
be able to recognize it from all the others.

If you agree to purchase in sufficiently high volumes, you can
probably, also, arrange for the electrons to spin *backwards*
in your parts so none of your competitors will be able to
steal your design! (alternatively, you could have the charges
swapped on the electrons and holes, if that better fits your budget)