The figure below is a problem when using timers in the same way as "light_switch" in "telink mesh sdk".
I have to export IR output from "light_switch", so I send GPIO output using timer1. As shown in the picture below, there is a delay in the middle, so there is no proper output.
I set the pin to toggle constantly every 560us, but there is a delay in the middle as shown in the figure.
By any chance, have you ever been briefed on these symptoms?
Is there a solution?
There is no problem with the timer in "825x_BLE_SDK".
I m guessing there s a problem with the code in "telink mesh sdk", but it won t work even if you handle all the code in the main loop so it doesn t run.
There is no arbitrarily modified part of the sample code provided, but we just set the toggle pin on timer1.
However, sleep mode is disabled because sleep mode is not required.
The code used is as follows.
No related topics |
hi,
why you use timer to control the GPIO,rather than the pwm, it delay may caused by some other higher interrupt .