/* configures the compare unit of a Slave_TIMER0 which work in waveform mode */
shrtimer_comparecfg_struct_para_init(&comparecfg_para);
comparecfg_para.compare_value = 1000; 这个1000是根据什么设置的
shrtimer_slavetimer_waveform_compare_config(SHRTIMER0, SHRTIMER_SLAVE_TIMER0, SHRTIMER_COMPARE0, &comparecfg_para);
comparecfg_para.compare_value = 6000; 这个是设置占空比吗
shrtimer_slavetimer_waveform_compare_config(SHRTIMER0, SHRTIMER_SLAVE_TIMER0, SHRTIMER_COMPARE1, &comparecfg_para);
用这个SHRTIMER做全桥逆变互补输出交流,输出的波形负值什么问题?
|