Vic Fraenckel wrote : > I am a mikroPascal user. Yes, you can embed assembler in your > code with the asm keyword. See the compiler help files. I never thought you couldn't. > If your PIC supports it, the PWM library should work. Yep, here is the problem. The PIC (12F683) has a PWM/CCP module, but mikroPascal doesn not support it using the (four) PWM Library functions. I tryed to "hack" the "def" files myself but ended up with some banking errors... > There is samples of how to use library > in the samples folder on the install path. Yes, I know, and I also understand how to set the CCP regs directly from mikroPascal (not using embed ASM but using normal variable assignments). That isn't the problem. Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist