Part Number: MSP430F413
Tool/software: TI C/C++ Compiler
how to set frequency. i need 1 tick equals to 1micro second delay. how can i do this.
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.
Part Number: MSP430F413
Tool/software: TI C/C++ Compiler
how to set frequency. i need 1 tick equals to 1micro second delay. how can i do this.
Hi Ilensys,
For the rough delay, you can use the __delay_cycles(unsigned long cycles); function, The parameter is the cycle period.
__delay_cycles(10);
If you need an accurate 1ms delay, you need to use a timer to implement it. Attach a reference program for the timer:
http://dev.ti.com/tirex/explore/node?node=ABvtsvdBd9aNCX93gnXs6Q__IOGqZri__LATEST
Best Regards
Johnson
**Attention** This is a public forum