My code will not compile because of this error in this function can anyone help
void SetDCPWM(unsigned int dutycycle) {
unsigned int local_dutycycle;
local_dutycycle = dutycycle;
CCPR1L = (dutycycle >>2);
CCP1CONbits.DC1B = local_dutycycle & 0x0003;
return; }
I am getting this error
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