PWM上16f错误

时间:2014-10-31 12:28:54

标签: c embedded pic mplab pwm

我的代码无法编译因为此函数中的此错误可以任何人帮助

void SetDCPWM(unsigned int dutycycle) {

unsigned int local_dutycycle;
local_dutycycle = dutycycle;

CCPR1L = (dutycycle >>2);

CCP1CONbits.DC1B = local_dutycycle & 0x0003;

return; }

我收到此错误

Error   [255] C:\KEVIN-WORK\WORK\SM511602\SM511601 TEK572A Syspeo RS232 receiver.c; 352.18 not a member of the struct/union ""

Error   [182] C:\KEVIN-WORK\WORK\SM511602\SM511601 TEK572A Syspeo RS232 receiver.c; 352.44 illegal conversion between types
unsigned int -> volatile union S30

0 个答案:

没有答案