Phatline Posted November 14, 2018 Report Share Posted November 14, 2018 i need a count from 0-1ms (to modulate the triggerlength for a TR606 - in order to get some velocity-like reaction from the machine) count is not the problem, more the execution of the function also to make a RTOS-Task for it - i know very well and use it a lot.... but since now i dont needet anything under 1ms Rate... when change from (taken from tutorial 006_rtos_tasks) vTaskDelayUntil(&xLastExecutionTime, 1 / portTICK_RATE_MS); to vTaskDelayUntil(&xLastExecutionTime, 1 / 10); has it effect or is it "fixed with min 1ms" ? are there MIOS functions i can use instead which have a better call-rate? thx 4 info Quote Link to comment Share on other sites More sharing options...
Antichambre Posted November 15, 2018 Report Share Posted November 15, 2018 Hi Mike, I'm not sure but 1ms is the smallest rate you can achieve with RTOS Tasks. Use MIOS32 Timer instead, the timer can be set to a multiple of 1us Check this: Best regards Bruno 1 Quote Link to comment Share on other sites More sharing options...
Phatline Posted November 15, 2018 Author Report Share Posted November 15, 2018 i set: #define RESOLUTION 10 // in uS #define TIMER_NUM 1 // TIM3 #define TIMER_PRIO MIOS32_IRQ_PRIO_HIGH which give me good timing thx. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.