Author Topic: Bitcloud timers  (Read 1682 times)

0 Members and 1 Guest are viewing this topic.

Offline DaurenDTopic starter

  • Newbie
  • Posts: 5
  • Country: kz
Bitcloud timers
« on: March 02, 2016, 11:07:24 am »
Hello alex). I need to mesure small amount of time, but stack function doesn't provide any methods to do it. Cause HAL_GetSystemTime returns time in milliseconds. I'm doubt about using timer directly outside of the stack, cause it may harm some timings.

So anyway, how to count microseconds(or less) using Bitcloud?
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12497
  • Country: us
    • Personal site
Re: Bitcloud timers
« Reply #1 on: March 02, 2016, 06:34:35 pm »
Just use hardware timers, it is fine to do so. Use any timer that is not used by the stack. You can lookup which ones are used in the HAL or [possibly] documentation.

I know for sure that on megaRF TCNT4 and TCNT2 are used.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->