lussby 发表于 2014-5-17 15:39
你好,固定模式下是指什么呢?是不是指PWM值是固定的呀?如果固定的话,测出来的值是对的,但是固定的话 ... sPt.u8Mode = DRVPWM_AUTO_RELOAD_MODE;
sPt.u32Frequency = 0; /* Set the proper frequency to capture data (Less than the input data)*/
sPt.u8HighPulseRatio = 50; /* High Pulse peroid : Total Pulse peroid = 50 : 100 (Set a non-zero value),no important here */
sPt.u32Duty = 0x10000; /* Set the counter to the maximum value */
sPt.u8ClockSelector = DRVPWM_CLOCK_DIV_1;
sPt.u8PreScale = 2;
sPt.i32Inverter = 0; /*no invert */
u8CapTimer = DRVPWM_CAP0;
应该是你这里的代码决定了采集频率 |