Steve

Have dug further. The PWM statement will compile by itself. Adding a varible definition does not:

superman var byte
pwm porta.0, 127, 100

Seems that defining any variable causes these errors:

NEW ERROR_LA~2.ASM 47: [226]numeric constant or symbol name expected
NEW ERROR_LA~2.ASM 47: [201] ')' expected
NEW ERROR_LA~2.ASM 47: [212] extra tokens on end of line

Jim