1: 怎么配置passive mode时候的电平,可以根据下面寄存器进行配置:
// CCU80_CC80->PSL=(uint32_t)0x01; // passive output high
CCU80_CC80->PSL&=(uint32_t)0xFFFE; // passive output low
CCU80->GCSS=(uint32_t)0x01; //enable shadow transfer
最后enable shadow transfer非常重要,不然前面的配置无效。
2:如何通过SW stop PWM,例如: CCU80_CC80, the register is :TCCLR
CCU80_CC80->TCCLR = (uint32_t) CCU8_CC8_TCCLR_TRBC_Msk; //stop timer
|