Hello
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
In any case ANSI standard does not define P1^3 as valid notation to access bit number 3 in a variable / register).
Please refer to your favorite ANSI C programming manual and look at how bitfields are managed.
CrasyCat