52832 PPI for timer and PWM

hi, 

I want to use PPI function for timer trigger to PWM, but I noticed PWM doesn't have TASK_START register, please see the pictures.

how can I start PWM by timer?

thanks 

Parents Reply
  • could you see my code? I write "NRF_PWM_TASK_SEQSTART0", it does not start. but I write "NRF_PWM_TASK_STOP", it can stop PWM normally. So I think the PWM start register is wrong. where should I change it.

    Thanks 

    void timer0_event_handler(nrf_timer_event_t event_type, void* p_context)
    {
    	nrf_drv_pwm_uninit(&m_pwm1);
    	r0=1;r1=1;Count_Ring0=0,Count_Ring1=1;
    	nrf_drv_pwm_uninit(&m_pwm0);
    	t0=1;t1=1;Count_Tip0=0,Count_Tip1=1;
    
    }

Children
No Data
Related