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,
Hi. You want to know the period of system ticks? Then use PSP's function:
/* [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 )
tick_ptr->TICKS = 1;
tick_ptr->HW_TICKS = 0;
Retrieving data ...