View Full Version : Problem with PWM using 16F688
electrocomp
- 24th November 2007, 14:03
When using the PWM statement for the 16F688, the compiler does not compile and produces several non descript errors. Just using the single example from the manual: PWM PORTC.0,127,100 standing alone, does not compile, yet it compiles under the 16F676. I am totally lost, as the two processors are quite similar, yet the compiler only recognizes the 16F676. Have not tried any others. Any thoughts from anyone?
mister_e
- 24th November 2007, 16:49
It compile just fine here, which version of PBP do you have?
electrocomp
- 24th November 2007, 17:30
Thanks Steve. Compiler version 2.47, Microcode Studio version 2.3.0.0. Even reloading didn't help.
mister_e
- 24th November 2007, 17:33
what errors do you get?
nomad
- 24th November 2007, 20:47
nm. mis read that.
mister_e
- 24th November 2007, 20:49
;) ok !!!!!
electrocomp
- 25th November 2007, 01:58
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
electrocomp
- 25th November 2007, 02:33
Cancel any further help on this. Found that there is something just strange with the file name that I have been using. I go to another file name or create a new file, and everything works fine. There may be a bug in the compiler or in my system, but I have found how to work around it. Thanks for your help.
Jim
ruijc
- 30th November 2007, 09:09
I have the same problem...
I cannot use file names bigger than 8 characters. It's dos related !
.
electrocomp
- 1st December 2007, 14:14
Thank you ruijc. I am glad it's not just me on this one. Seems there are other issues with the compiler that I am finding as well regarding this. I have not concluded anything yet however. Will post as I find them.
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.