Dave Turner wrote : > If the pascal PWM functions are missing, but the hardware has a PWM, > can't you embed the assembler code in the pascal somehow? Most PIC > compilers I've seen have a nested ASM feature somewhere. I'm not sure > how you would pass variables from pascal to assembler though. Oh, maybe I wasn't clear enough... There is no need to embed any ASM, the support for all involed registers are there, so one can just set CCP1CON, TMR2, CCPR1L and any other registers with simple assignments as usual from Pascal. What *is* missing is support for the PWM Library functions : Pwm_Init Pwm_Change_Duty Pwm_Start Pwm_Stop They are not strictly needed but makes the code a bit more clean... Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist