I'm not sure if the PWM command is supported on 20X2 ( and 28X2 /40X2 ) and this is a compiler issue or if it isn't supported and it is a documentation issue. I suspect the compiler is more correct and we have accidentally documented a command as available which is not. I'll seek clarification on the matter.
PWM is available on all X2 parts, but a bug in the compiler is preventing it from being compiled - sorry about that! We will fix for the next software release which is due next week.
Does the compiler bug only effect the PWM commands or are HPWM commands affected as well?
The reason I ask is that the I have a 20X2 which steadfastly refuses to recognise the active polarity settings, and will not give a complementary output on Pin B when in Half Mode (HPWM).