|
Re: pwm definition problems
You could be missing a particular compiler flag.
In MPLAB go to:
Project -> Build Options... -> Project
then the MPLAB C18 tab
Look under "Marco Definitions" and you should see _FRC_BOARD
Missing this will cause the errors you describe, because the compiler thinks you are targeting the EDU controller which takes different arguments for the Generate_PWMs command, and it only has 8 PWMs.
If this is indeed the problem click on "Add.." and type in _FRC_BOARD.
Then re-build everything.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|