This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049C: TMS320F280049C

Part Number: TMS320F280049C

 //Cmpss 1               
    //Enable CMPSS
    Cmpss1Regs.COMPCTL.bit.COMPDACE            = 1;
    //NEG signal comes from DAC
    Cmpss1Regs.COMPCTL.bit.COMPHSOURCE         = NEGIN_DAC;
    Cmpss1Regs.COMPCTL.bit.COMPLSOURCE         = NEGIN_DAC;
    //Use VDDA as the reference for DAC
    Cmpss1Regs.COMPDACCTL.bit.SELREF           = REFERENCE_VDDA;
    Cmpss1Regs.COMPDACCTL.bit.DACSOURCE        = 0;
    Cmpss1Regs.COMPDACCTL.bit.SWLOADSEL        = 0;
    //Set DAC to midpoint for arbitrary reference
    Cmpss1Regs.DACHVALS.bit.DACVAL             = 2867;
    Cmpss1Regs.DACLVALS.bit.DACVAL             = 2253;

    Cmpss1Regs.COMPCTL.bit.COMPHINV            = 0;  //高比较器不取反
    Cmpss1Regs.COMPCTL.bit.COMPLINV            = 1;  //低比较器取反

    // Configure CTRIPOUT path
    //Asynch output feeds CTRIPH and CTRIPOUTH
    Cmpss1Regs.COMPCTL.bit.CTRIPHSEL           = CTRIP_ASYNCH;
    Cmpss1Regs.COMPCTL.bit.CTRIPLSEL           = CTRIP_ASYNCH;

    //Configure TRIP4 to be CTRIP1H or CTRIP1L
    EPwmXbarRegs.TRIP4MUX0TO15CFG.bit.MUX0 = 1;
    //Enable TRIP4 Mux for Output
    EPwmXbarRegs.TRIP4MUXENABLE.bit.MUX0   = 1;

按照上面的程序设计,我需要将CTRIPH连接到EPWM1A,CTRIPL连接到EPWM1B,在EPWM里面还需要哪些配置(最好是寄存器的具体配置),另外,在 EPwmXbarRegs.TRIP4MUX0TO15CFG.bit.MUX0 = 1;这句语句的配置中,为什么要赋值为1,0为什么不行,以及这两种配置的不同之处在哪?这是我存有疑问的地方,需要技术人员的帮助,十分感谢。