Hello Rich, The resolution and period you configure in the driver properties, applies to overflow value. counterGet provides current value of TCNT regiser which is stored in PLCKD ticks (120MHz on S7G2 by default). If you'd like value in micro/milli/seconds then you should divide it accordingly. You can also use CGC call to determine current PCLKD frequency: g_cgc.p_api- systemClockFreqGet(CGC_SYSTEM_CLOCKS_PCLKD, &ret); Regards
↧