Does ZGM130S Z-Wave 700 support timer in us resolution?
I checked the SwTimer, it said only support value in ms.
ESwTimerStatus TimerStart(SSwTimer* pTimer, uint32_t iTimeout); /** * Configures Timer timeout and starts the timer from an Interrupt Service Routine. * If method is called on a timer that is already started, the timer will restart * from zero and count towards the new timeout. * * @param[in] pTimer Pointer to the timer object * @param[in] iTimeout Timeout value in ms. Zero is illegal. * @retval ESWTIMER_STATUS_SUCCESS Timer started Successfully. * @retval ESWTIMER_STATUS_FAILED Never returned under normal circumstances. * Can be returned e.g. if OS is not started yet.
If I would like to do timer around 120us , what can I do? I think the main clock is fast enough for us resolution, thanks for your help
The software timer module provided by the Z-Wave application framework only supports values in ms. But you can use the TIMER peripheral in ZGM130S to trigger timed actions in us. For example, the board.c code utilizes TIMER1 to generate PWM output for RGB LEDs.
In emdrv folder there is USTIMER.
It works 100%.