EmbeddedRelated.com
Forums

HCS12 : how to reset manually ???

Started by montserret_maxime February 10, 2006
Hi ,

Do you know how to reset manually HSC12 CPU ???
Many thanks in advance.
	
> Do you know how to reset manually HSC12 CPU ???
> Many thanks in advance.

You need a pushbutton that will force -RESET line into low state.

-- 
Michal Konieczny
mk@mk@....

Thanks but I knew.

I mean Reset CPU by software, of course.
	--- In 68HC12@68HC..., Michal Konieczny <0xmk@...> wrote:
>
> > Do you know how to reset manually HSC12 CPU ???
> > Many thanks in advance.
> 
> You need a pushbutton that will force -RESET line into low state.
> 
> -- 
> Michal Konieczny
> mk@...
>
	
try a COP reset.
Write an non $55/$AA value to ARMCOP.
E.g.
void ResetChip(void) {
  ARMCOP= 0; // reset if COP is enabled.
}

Daniel

montserret_maxime wrote:
> Thanks but I knew.
>
> I mean Reset CPU by software, of course.
>
>
>
>
> --- In 68HC12@68HC..., Michal Konieczny <0xmk@...> wrote:
>   
>>> Do you know how to reset manually HSC12 CPU ???
>>> Many thanks in advance.
>>>       
>> You need a pushbutton that will force -RESET line into low state.
>>
>> -- 
>> Michal Konieczny
>> mk@...
>>
>>     
>
>
>
>
>
>
>
>
>  
> Yahoo! Groups Links
>
>
>
>  
>
>
>
>
	
Hi Maxime.

Pay attention about software reset methods and issues/limitations.
This was already discussed in this newsgroup and nothing is like a real 
power reset, or pin reset.

Please scan posted threads or wait for more feedbacks from people in the group.

Regards,
Gilles
	At 01:25 PM 2/10/2006, you wrote:
>Thanks but I knew.
>
>I mean Reset CPU by software, of course.
>
>
>
>
>--- In 68HC12@68HC..., Michal Konieczny <0xmk@...> wrote:
> >
> > > Do you know how to reset manually HSC12 CPU ???
> > > Many thanks in advance.
> >
> > You need a pushbutton that will force -RESET line into low state.
> >
> > --
> > Michal Konieczny
> > mk@...
> >
>
>
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
	
> I mean Reset CPU by software, of course.

Disable interrupts, enable watchdog (if you don't use it already), loop 
forever without writing ARMCOP and wait for watchdog resetting the CPU.

-- 
Michal Konieczny
mk@mk@....

--- In 68HC12@68HC..., Gilles Blanquin <gilles.blanquin@...>
wrote:
> Hi Maxime.
> 
> Pay attention about software reset methods and issues/limitations.
> This was already discussed in this newsgroup and nothing is like
> a real 
> power reset, or pin reset.
> 
> Please scan posted threads or wait for more feedbacks from people
> in the group.
> 
> Regards,
> Gilles
	There is a way to really do hard-reset from software if you take one
of your outputs to actually assert the RESET pin. Pay attention to
follow specs, make sure it stays low long enough or whatever.