T1CTRIP_PDPINTA为低电平,PWM1~PWM6无脉冲输出PWM1~PWM6无脉冲输.....
时间:10-02
整理:3721RD
点击:
,请问我在程序中,将T1CTRIP_PDPINTA(即GPIOD0)置为低电平,然后在置为高电平,来启动外部AD,发现PWM1~PWM6的脉冲没有输出。请问哪位大侠能解决,如果把 GpioDataRegs.GPDCLEAR.bit.GPIOD0=1; 屏蔽掉,则PWM1~PWM6会有脉冲输出
interrupt void T1UFINT_ISR(void) // EV-A
{
int uu=0;
GpioDataRegs.GPDCLEAR.bit.GPIOD0=1;
GpioDataRegs.GPDCLEAR.bit.GPIOD1=1;
for(uu=0;uu<5;uu++)
{}
GpioDataRegs.GPDSET.bit.GPIOD0=1;
GpioDataRegs.GPDSET.bit.GPIOD1=1;
EvaRegs.EVAIFRA.bit.T1UFINT=1;
PieCtrlRegs.PIEACK .all =PIEACK_GROUP2;
}
在中断里面T1CTRIP_PDPINTA为低电平,PWM1~PWM6无脉冲输出
interrupt void T1UFINT_ISR(void) // EV-A
{
int uu=0;
GpioDataRegs.GPDCLEAR.bit.GPIOD0=1;
GpioDataRegs.GPDCLEAR.bit.GPIOD1=1;
for(uu=0;uu<5;uu++)
{}
GpioDataRegs.GPDSET.bit.GPIOD0=1;
GpioDataRegs.GPDSET.bit.GPIOD1=1;
EvaRegs.EVAIFRA.bit.T1UFINT=1;
PieCtrlRegs.PIEACK .all =PIEACK_GROUP2;
}
在中断里面T1CTRIP_PDPINTA为低电平,PWM1~PWM6无脉冲输出