Fortune Telling Collection - Comprehensive fortune-telling - How to calculate the interrupt period of dsp
How to calculate the interrupt period of dsp
1. First, it is necessary to determine the clock frequency of the DSP chip used and the counting accuracy of the timer.
2. Then, according to the required interrupt cycle time, calculate how many counting cycles are needed to generate an interrupt. For example, if you set a timer, it needs 50us to interrupt once. Assuming that the clock frequency is 100MHz and the timer precision is 16 bits, then the timer counts 10000000 times per second, and 50us counts 5000 times, that is, an interrupt will be generated every 5000 times.
3. Set timer interrupt parameters according to configuration registers and corresponding timer control registers provided in DSP chip manuals and development tools, and initialize timer initial values and interrupt service programs.
- Related articles
- A sharp weapon for fortune telling
- There is a sickle killing plot in Japanese horror movies.
- The birth of Li Bai
- Please give your child a good name, with unlimited points ~
- What are the fetal positions? What are the abnormal fetal positions?
- Is fortune telling collectible? _ fortune-telling series
- Tear nevus picture
- What does the fortune teller mean by going to Sanshan? _ What does the fortune teller mean by three mountains?
- Famine fortune teller _ Where is the famine fortune teller?
- The Key to Changing Fate ¡ª¡ª Gene Book of Changes