Autor Tema: Reseteo sotfware  (Leído 1514 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado superprp

  • PIC16
  • ***
  • Mensajes: 137
Reseteo sotfware
« 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?

Desconectado gera

  • Colaborador
  • PIC24H
  • *****
  • Mensajes: 2188
Re: Reseteo sotfware
« Respuesta #1 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!

"conozco dos cosas infinitas: el universo y la estupidez humana. Y no estoy muy seguro del primero." A.Einstein