What is the approximate time or cycles it takes to reset the peripherals? That is, to complete a system soft reset?
The system soft reset takes 5 system clock cycles to complete. After writing into the SWRST register to reset the peripherals, we have to wait for 5 SCLK cycles. Assuming a worst case CCLK:SCLK ratio (15:1), the following delay loop can be used:
P1 = 75; //15 * 5 = 75LSETUP(start, end) LCO = P1 ; start: end: NOP ;
Retrieving data ...