This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
This is a message provided by ULP Advisor rather than a compiler warning - this is why I think it will show up under "Advice" instead of under "Problems" in CCS.
There is nothing wrong with using __delay_cycles (it will definitely work) - the advice given by ULP advisor is just there to try to provide tips on how you can optimize your code for low power operation since this is usually a key care-about for MSP430 users. It suggests using a timer because this allows you to go to low power mode during the delay, saving you power. But it is not necessary to use the timer if it makes more sense to just use delay cycles in your application (you may be timer limited, not care about power in this case, or prefer the simplicity).
You may want to see this forum post: http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/264816/925804.aspx#925804
And there is more information about ULP Advisor here: http://processors.wiki.ti.com/index.php/ULP_Advisor?DCMP=MSP430&HQS=Other+OT+ulpadvisor
Regards,
Katie
**Attention** This is a public forum