cc13XX PWM问题
时间:10-02
整理:3721RD
点击:
#define Board_BUZZER IOID_7
#define Board_PWMPIN0 Board_BUZZER
Board_BUZZER | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
main中 有Board_initPWM();
static PWM_Handle pwm1;
PWM_Params_init(¶ms);
params.dutyUnits = PWM_DUTY_US;
params.dutyValue = 0;
params.periodUnits = PWM_PERIOD_US;
params.periodValue = 3000;
pwm1 = PWM_open(Board_PWM0, ¶ms);
PWM_start(pwm1);
start 后对应IO口没有任何反应; 不知道对应的pwm功能还需要配置其他什么参数,(参考demo pwmled_CC1310_LAUNCHXL--有效果)
有没有用TI例程尝试过?
3515.4760.gptimer_pwm_cc26xx_cc13xx.zip