附图是我想要的两路脉冲:
我用了EVA中的一路PWM1和EVB中的另一路PWM2,然后采用EvbRegs.CMPR4 = EvaRegs.CMPR1-30,使得PWM7确实超前了PWM1,但是,与此同时带来的问题是使得PWM7的脉宽变大了(比如我只想要0.06T的脉宽),我该怎样减少PWM7的脉宽?
我用了
{if (EvbRegs.T3CNT < EvbRegs.CMPR4)
EvbRegs.ACTRB.bit.CMP7ACT = 0;
else if(EvbRegs.T3CNT < EvbRegs.CMPR4+45)
EvbRegs.ACTRB.bit.CMP7ACT = 3;
else
EvbRegs.ACTRB.bit.CMP7ACT = 0;}
目的是想通过强制高或强制低满足我的PWM7,只在EvbRegs.CMPR4
500) {this.resized=true; this.width=500; this.alt='这是一张缩略图,点击可放大。\n按住CTRL,滚动鼠标滚轮可自由缩放';this.style.cursor='hand'}" onclick="if(!this.resized) {return true;} else {window.open('http://u.dianyuan.com/bbs/u/49/1169701958.jpg?x-oss-process=image/watermark,g_center,image_YXJ0aWNsZS9wdWJsaWMvd2F0ZXJtYXJrLnBuZz94LW9zcy1wcm9jZXNzPWltYWdlL3Jlc2l6ZSxQXzQwCg,t_20');}" onmousewheel="return imgzoom(this);">