Hi everyone,
Could you tell a simple way to configure a timer with a period of 1 microsecond?
Thank You,
Miguel Vieira
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 everyone,
Could you tell a simple way to configure a timer with a period of 1 microsecond?
Thank You,
Miguel Vieira
Hi,
within 1 microsecond, you can only execute 48 instructions at most (the number is a bit less in reality due to bus accesses and instruction pipeline hazards). I do not think that you could do anything valuable within 1 microsecond.
You could potentially use the General Purpose Timer (GPT) for such a short period and configure it with interrupt priority level 0. This is called zero-latency interrupt and would circumvent the TI-RTOS kernel. You may take this post as an inspiration. It is not the same, but it shows how to set up the GPT with an interrupt handler.