How to get the System tick

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get the System tick

ソリューションへジャンプ
2,032件の閲覧回数
Chethu
Contributor I

Hi,

I am using the MCF52259 controller & implementing the modbus protocol in it. I want to know how i can get the system tick to calculate tht interbyte silent interval.

 

Thanks & Regards,

Chethu

0 件の賞賛
返信
1 解決策
1,211件の閲覧回数
JuroV
NXP Employee
NXP Employee

Hi. You want to know the period of system ticks? Then use PSP's function:

_psp_ticks_to_picoseconds(

      /* [IN] Ticks to be converted */
      PSP_TICK_STRUCT_PTR tick_ptr,

      /* [OUT] pointer to where the overflow boolean is to be written */
      boolean _PTR_       overflow_ptr
   )

 

or equivalent:

_psp_ticks_to_nanoseconds(...)

 

with:

tick_ptr->TICKS[0] = 1;

tick_ptr->HW_TICKS[0] = 0;

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,212件の閲覧回数
JuroV
NXP Employee
NXP Employee

Hi. You want to know the period of system ticks? Then use PSP's function:

_psp_ticks_to_picoseconds(

      /* [IN] Ticks to be converted */
      PSP_TICK_STRUCT_PTR tick_ptr,

      /* [OUT] pointer to where the overflow boolean is to be written */
      boolean _PTR_       overflow_ptr
   )

 

or equivalent:

_psp_ticks_to_nanoseconds(...)

 

with:

tick_ptr->TICKS[0] = 1;

tick_ptr->HW_TICKS[0] = 0;

0 件の賞賛
返信