Hello all,
in the sample code provided by TI I noticed a waiting time after the peripheral is reset and power was enabled:
#define POWER_STARTUP_DELAY (16) DL_TimerA_reset(TIMER_0_INST); DL_TimerA_enablePower(TIMER_0_INST); delay_cycles(POWER_STARTUP_DELAY);
If I do not include this waiting time in my code I observed that the initialization afterwards is sometimes not done correctly (in this case a timer peripheral), depending on the optimization level of the compiler.
So it seems the waiting time is crucial here. However neither did I see it in the suggestion for the initialization sequence in the reference manual (e.g. for UART), nor did I find a waiting time specified in the data sheet.
Could someone please point out where I can find what waiting time is required for which peripheral?
Thank you in advance!
Regards,
Holger