TODOPIC

Microcontroladores PIC => Todo en microcontroladores PIC => Mensaje iniciado por: superprp en 18 de Diciembre de 2008, 06:26:45

Título: Reseteo sotfware
Publicado por: superprp en 18 de Diciembre de 2008, 06:26:45
Buenas,

Estoy trabajando con un dsPIC30F, me gustaría saber como puedo resetearlo por software. En el datasheet pone lo siguiente:

8.2.1 RESET SOURCES
In addition to external Reset and Power-on Reset
(POR), these sources of error conditions ‘trap’ to the
Reset vector:
• Watchdog Time-out:
The watchdog has timed out, indicating that the
processor is no longer executing the correct flow
of code.
• Uninitialized W Register Trap:
An attempt to use an uninitialized W register as
an Address Pointer causes a Reset.
• Illegal Instruction Trap:
Attempted execution of any unused opcodes
results in an illegal instruction trap. Note that a
fetch of an illegal instruction does not result in an
illegal instruction trap if that instruction is flushed
prior to execution due to a flow change.
• Brown-out Reset (BOR):
A momentary dip in the power supply to the
device has been detected which may result in
malfunction.
• Trap Lockout:
Occurrence of multiple trap conditions
simultaneously causes a Reset.

Pero creo que ninguna de ellas me vale para yo en cualquier momento activar un flag por ejemplo y resetear. ¿como podría hacerlo?
Título: Re: Reseteo sotfware
Publicado por: gera en 18 de Diciembre de 2008, 12:00:03
yo creo q con un 'goto 00h' lograrias el mismo efecto, ya que el vector de reset esta en esa direccion (dependiendo del pic q uses)
saludos!
Título: Re: Reseteo sotfware
Publicado por: Nocturno en 18 de Diciembre de 2008, 13:50:13
Echa un vistazo por aquí:
http://www.todopic.com.ar/foros/index.php?topic=13890.0