Mike - K8LH
Well-Known Member
Gentlemen, what am I doin' wrong? I see a definition for ccpr1 in the '2620 header file but I can't seem to access it as an INT. I get an error when trying to assign an integer variable to it;
Code:
unsigned int match = 2400;
...
ccpr1 = match; // update CCPR1 "compare" registers
match <<= 1; // match value for next cycle