Software Restart System


This example demonstrates how to do the restart of MINI-MAX/51 series board. Low Level of P1.5 line stops the secondary PIC and hardware WDT of PIC restarts the whole system.

Toolkit:SDCC 8051 Development System

Location:/bipom/devtools/SDCC/examples/restart/

Code Example


#define SS						P1_5 /* Slave Select */  

main()
{ 
/* Configure serial port */
	serinit(CBR_19200); 
	printf ("\n\n**   START   **"); 
	SS = 0; 
	printf ("\nWAIT FOR NEW START"); 
	for(;;); // Loop forever

	
}