Syntax:
PWMOff
Command Availability:
Only available on Microchip PIC microcontrollers with Capture/Compare/PWM module CCP1.
This command does not operate on any other CCP channel.
Explanation:
This command will disable the output of the CCP1/PWM module on the Microchip PIC chip.
Example:
'This program will enable a 76 Khz PWM signal, with a duty cycle 'of 80%. It will emit the signal for 10 seconds, then stop. #define PWM_Freq 76 'Set frequency in KHz #define PWM_Duty 80 'Set duty cycle to 80 % PWMOn 'Turn on the PWM WAIT 10 s 'Wait 10 seconds PWMOff 'Turn off the PWM
For more help, also see PWMOn