程序如下
// 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口