XCore Soft Reset
From XCore Exchange
This page describes how to reset an XCore chip utilising software.
Any writes to the PLL Control Register (register 6 on the L and G series) cause the chip to reset and reboot, even if the value is unchanged. Access functions are provided in the xs1.h header file. For example:
#include <xs1.h>
void chipReset(void)
{
unsigned x;
read_sswitch_reg(get_core_id(), 6, x);
write_sswitch_reg(get_core_id(), 6, x);
}
Note: This method will not cause the XC-1 Development Kit to fully reset. The program must still be reset from the XDE.
