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.

造PWM时我使能了M0PWM0(PB6)结果M1PWM0(PD0)没有配置它也出来了波形而且和PB6口的一样

Other Parts Discussed in Thread: EK-TM4C123GXL

程序如下

// Set the PWM clock to the system clock.
SysCtlPWMClockSet(SYSCTL_PWMDIV_8);
// Enable the GPIO Peripheral used by the PWM0
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
// Enable PWM0
SysCtlPeripheralEnable(SYSCTL_PERIPH_PWM0);
// Configure GPIO Pins for PWM0 mode.
GPIOPinConfigure(GPIO_PB6_M0PWM0);

GPIOPinTypePWM(GPIO_PORTB_BASE, GPIO_PIN_6);

PWMGenConfigure(PWM0_BASE, PWM_GEN_0, PWM_GEN_MODE_DOWN | PWM_GEN_MODE_NO_SYNC);

PWMGenPeriodSet(PWM0_BASE, PWM_GEN_0, Period);

PWMPulseWidthSet(PWM0_BASE, PWM_OUT_0, Duty);

// Enable the PWM0 Bit 0 (PB6)
PWMOutputState(PWM0_BASE, PWM_OUT_0_BIT, true);
// Enables the counter for a PWM generator block.
PWMGenEnable(PWM0_BASE, PWM_GEN_0);

我现在只想要PB6口有波形。怎么屏蔽PD0口