HKS

timer or freecounter

Discussion created by HKS on Mar 4, 2008
Latest reply on Mar 4, 2008 by CrasyCat
I am trying to set a 5 sec delay for my hc12 MCU. This is to stop a DC motor for 5 sec. Now I am trying to use a freecounter to run the TTicks and use that value that is close to 5 sec. But I have no idea how to get the value for TTicks in my code. I tried setting a variable equal to TTicks but it gave me an error. Also i tried using FreeCntr321_GetValMS( ): which i am having trouble setting the proper format.
Any help will be appreciated.

Outcomes