关于CAP2寄存器的说明如下图所示,意思是说当用作APWM模式时,CAP2是周期寄存器CAP4(APRD)的影子寄存器,也就是设置周期的意思呗。
但是,下面我们来看看关于CAP4的描述:
In APWM mode, this is the compare shadow (ACMP) register.
You update the PWM compare value via this register.
In this mode, CAP4 (ACMP) shadows CAP2.
意思是说CAP4是比较寄存器(ACMP),影子到了CAP2。(不是周期了)
由此可知,两者说的有矛盾。请官方大神澄清,谢谢!