An oPWMH Object outputs a Pulse-Width-Modulated clock cycle on the I/O line specified by the IOLine property. The output clock cycles at a frequency 19.6khz. The Pulse-Width of the logic-high portion of the clock cycle output is determined by the value of the DutyCycle property which is expressed as ratio of an 8-Bit number where 127 would be 50% The Operate property specifies if the logic-high portion of the clock cycle output is generated. When the Operate property is set to 1, the PIC's PWM Module starts generating PWM pulses. When the Operate property is set to 0, the PWM pulses are discontinued and the specified I/O Line is set to 0-Volts. The oPWMH Object uses an instance of the oPWM object which it uses to generate the Pulse-Width-Modulated output. Note that all other objects that use the oPWM object will share the PIC's PWM Hardware. Most properties of the oPWM instance can be adjusted and will affect the oPWMH object's operation such as PWM.PreScale which is used to specify the frequency of the output clock cycle. (see oPWM Object for more detail) |