when i use sdk14.2.0 pwm_driver , i use nrf_drv_pwm_sequence_values_update(&m_pwm0, 1, values) can work well , but use seq0 not work well. why
when i use sdk14.2.0 pwm_driver , i use nrf_drv_pwm_sequence_values_update(&m_pwm0, 1, values) can work well , but use seq0 not work well. why
i debug rgb led ,when i update nrf_pwm_values_t in pwm interrupt handler ,if update twice ,it is success ,but more,it have random flicker.this flicker is occur between twice handlerxx_rgb_pwm.c
Hello strengthstrong.
I will need to look further into this, but it seems like while the loop counter of the simple sequence is 1, it will not execute sequence 0. When the loop counter is larger that 1, it switches between executing sequence 0 and sequence 1. If you look within the simple sequence function it sets both sequences to the same values.
Due to the Christmas Holidays I will not get a chance to look further into this until January.
I update the array in the pwm interrupt function, the array is the process of color gradient, when I just update a set of gradient process, there is no problem, but the extra set of process, the color gradient will add array in this gap flashing below, I use Oscilloscope observation, is in the transition from low to high voltage transient jump bit low, and then returned to high, and then normal, I do not know where the problem, I code logic is no problem I doubt that with the new function, please advise.xx_rgb_pwm.c
Could you please post a picture of your oscilloscope readings, that would help me evaluate what is going on.