typedef struct tagPT_QCounterConfigSys
{
INT16U SysClock;
INT16U TimeBase;
INT16U TimeDivider;
INT16U CascadeMode;
} PT_QCounterConfigSys, * LPT_QCounterConfigSys;
PT_QCounterConfigSys is used in function DRV_QCounterConfigSys.
| Name | Direction | Description |
| SysClock | input | System clock source. The system clock rate on the device can be set to SYS8MHZ (8MHz), SYS4MHZ (4MHz) and SYS2MHZ (2MHz). |
| TimeBase | input | The time base control. The base period of the timer can be set to TPOINT1MS (0.1ms),T1MS (1ms),T10MS (10ms),T100MS (100ms),T10000MS(1s). |
| TimeDivider | input | The divider control value. The timer's period can be adjusted with the TimeDivider in the following formula: timer period = timer base period (TimerBase) * counter period multiplier (TimeDivider) For example, when setting a timing period of 20ms, the TimeBase can be set to T1MS (1ms) and the TimeDivider can be set to 20. Therefore, the actual timer's period is: timer period = TimeBase * TimeDivider = 1*20 = 20(ms) |
| CascadeMode | input | The cascade mode. 1: cascade, 0: not cascade |