i'm working with a 18F452 to produce a variable frequency with PWM1.
I looked up in mplab that the address of PR2 is 0xFCB.
So, i added #define PR2 0xFCB to the header file.
Why is PR2= 25; not working?
Compiler error says:
Expecting LVALUE such as a variable name or * expression
What am i doing wrong?
Thanks.
K
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum