min systick period & GPIO high frequency switching
Posted: Sat Jan 09, 2016 8:47 pm
Hello everyone,
From what I've understood in ERIKA I can create periodic tasks that has only periods that are multiple of the systick period, isn't it?
The call to EE_systick_set_period(value) set how many CPU clock cycles a systick has to last.
But is there a lower bound (different from 1) for this value?
In my application I need a task with a period of 0.5 microseconds, and given my CPU (STM32F4, Discovery board) goes at 168MHz I've tried to call EE_systick_set_period(84) but my application fail to start with a so small systick period value (lower bound for let the system work seem at 250-300).
The problem is that I need to toggle a GPIO pin every 0.5 microseconds and before to toggle the pin I have to read another GPIO line... Is this all feasible?
Thanks!
From what I've understood in ERIKA I can create periodic tasks that has only periods that are multiple of the systick period, isn't it?
The call to EE_systick_set_period(value) set how many CPU clock cycles a systick has to last.
But is there a lower bound (different from 1) for this value?
In my application I need a task with a period of 0.5 microseconds, and given my CPU (STM32F4, Discovery board) goes at 168MHz I've tried to call EE_systick_set_period(84) but my application fail to start with a so small systick period value (lower bound for let the system work seem at 250-300).
The problem is that I need to toggle a GPIO pin every 0.5 microseconds and before to toggle the pin I have to read another GPIO line... Is this all feasible?
Thanks!